(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:
twinaphex 2015-07-14 03:21:00 +02:00
parent 3bc88f3298
commit bca0789d35

View File

@ -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();
} }
/** /**