mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
|
||||
if (nav->selection_ptr + scroll_speed < (menu_list_get_size(menu_list)))
|
||||
{
|
||||
menu_navigation_set(nav,
|
||||
nav->selection_ptr + scroll_speed, true);
|
||||
menu_driver_navigation_increment();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (settings->menu.navigation.wraparound.vertical_enable)
|
||||
@ -103,11 +106,13 @@ void menu_navigation_increment(menu_navigation_t *nav, unsigned scroll_speed)
|
||||
else
|
||||
{
|
||||
if ((menu_list_get_size(menu_list) > 0))
|
||||
{
|
||||
menu_navigation_set_last(nav);
|
||||
menu_driver_navigation_increment();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu_driver_navigation_increment();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user