menu_navigation_increment - use menu_navigation_set_last

This commit is contained in:
twinaphex 2015-07-14 03:06:51 +02:00
parent e85de903b8
commit 3bc88f3298

View File

@ -101,8 +101,10 @@ void menu_navigation_increment(menu_navigation_t *nav, unsigned scroll_speed)
if (settings->menu.navigation.wraparound.vertical_enable)
menu_navigation_clear(nav, false);
else
menu_navigation_set(nav,
menu_list_get_size(menu_list) - 1, true);
{
if ((menu_list_get_size(menu_list) > 0))
menu_navigation_set_last(nav);
}
}
menu_driver_navigation_increment();