(XMB) xmb_render - Extra call to video_driver_get_size

This commit is contained in:
twinaphex 2019-08-13 12:15:59 +02:00
parent c3d624267b
commit a918bbdc3a

View File

@ -3211,7 +3211,6 @@ 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;
@ -3230,15 +3229,12 @@ 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);