Revert "(XMB) xmb_render - Extra call to video_driver_get_size"

This reverts commit a918bbdc3a690d750573a01d59cb49147b670946.
This commit is contained in:
twinaphex 2019-08-13 12:16:30 +02:00
parent a918bbdc3a
commit c0bfbd1ae8

View File

@ -3211,6 +3211,7 @@ static void xmb_render(void *data, bool is_idle)
unsigned end = (unsigned)menu_entries_get_size();
bool mouse_enable = settings->bools.menu_mouse_enable;
bool pointer_enable = settings->bools.menu_pointer_enable;
unsigned width, height;
float scale_factor;
@ -3229,12 +3230,15 @@ static void xmb_render(void *data, bool is_idle)
if (pointer_enable || mouse_enable)
{
unsigned height;
size_t selection = menu_navigation_get_selection();
int16_t pointer_y = menu_input_pointer_state(MENU_POINTER_Y_AXIS);
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS)
+ (xmb->cursor_size/2);
unsigned first = 0, last = end;
video_driver_get_size(NULL, &height);
if (height)
xmb_calculate_visible_range(xmb, height,
end, (unsigned)selection, &first, &last);