mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
(GLUI) Seems to take care of glitch that would sometimes happen when
trying to 'wrap' from the last entry to the first
This commit is contained in:
parent
3bc88f3298
commit
bca0789d35
@ -94,8 +94,11 @@ void menu_navigation_increment(menu_navigation_t *nav, unsigned scroll_speed)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (nav->selection_ptr + scroll_speed < (menu_list_get_size(menu_list)))
|
if (nav->selection_ptr + scroll_speed < (menu_list_get_size(menu_list)))
|
||||||
|
{
|
||||||
menu_navigation_set(nav,
|
menu_navigation_set(nav,
|
||||||
nav->selection_ptr + scroll_speed, true);
|
nav->selection_ptr + scroll_speed, true);
|
||||||
|
menu_driver_navigation_increment();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (settings->menu.navigation.wraparound.vertical_enable)
|
if (settings->menu.navigation.wraparound.vertical_enable)
|
||||||
@ -103,11 +106,13 @@ void menu_navigation_increment(menu_navigation_t *nav, unsigned scroll_speed)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((menu_list_get_size(menu_list) > 0))
|
if ((menu_list_get_size(menu_list) > 0))
|
||||||
|
{
|
||||||
menu_navigation_set_last(nav);
|
menu_navigation_set_last(nav);
|
||||||
|
menu_driver_navigation_increment();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_driver_navigation_increment();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user