mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Cleanups
This commit is contained in:
parent
10d1aea0e3
commit
e21e21647e
@ -245,6 +245,8 @@ static void glui_render(void)
|
||||
|
||||
if (settings->menu.mouse.enable)
|
||||
{
|
||||
int16_t mouse_y = menu_input_pointer_state(MENU_MOUSE_Y_AXIS);
|
||||
|
||||
if (menu_input->mouse.scrolldown)
|
||||
menu->scroll_y += 10;
|
||||
|
||||
@ -252,7 +254,7 @@ static void glui_render(void)
|
||||
menu->scroll_y -= 10;
|
||||
|
||||
menu_input->mouse.ptr =
|
||||
(menu_input->mouse.y - glui->line_height + menu->scroll_y - 16)
|
||||
(mouse_y - glui->line_height + menu->scroll_y - 16)
|
||||
/ glui->line_height;
|
||||
}
|
||||
|
||||
|
@ -1436,6 +1436,7 @@ static void xmb_render(void)
|
||||
float item_y1 = xmb->margins.screen.top + xmb_item_y(xmb, i, current);
|
||||
float item_y2 = item_y1 + xmb->icon.size;
|
||||
int16_t pointer_y = menu_input_pointer_state(MENU_POINTER_Y_AXIS);
|
||||
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||
|
||||
if (settings->menu.pointer.enable)
|
||||
{
|
||||
@ -1445,7 +1446,7 @@ static void xmb_render(void)
|
||||
|
||||
if (settings->menu.mouse.enable)
|
||||
{
|
||||
if (menu_input->mouse.y > item_y1 && menu_input->mouse.y < item_y2)
|
||||
if (mouse_y > item_y1 && mouse_y < item_y2)
|
||||
menu_input->mouse.ptr = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user