Call menu_navigation_set from menu_navigation_clear - will scroll

with an UI animation to the first entry of the next list
This commit is contained in:
twinaphex 2015-09-05 18:43:20 +02:00
parent 2415373aaf
commit 92b918cb63
2 changed files with 2 additions and 3 deletions

View File

@ -363,7 +363,7 @@ static void glui_render_menu_list(glui_handle_t *glui,
menu_entries_get(i, &entry);
entry_selected = nav->selection_ptr == i;
entry_selected = (nav->selection_ptr == i);
glui_render_label_value(glui, y, width, *frame_count / 40,
entry_selected ? hover_color : normal_color, entry_selected,

View File

@ -92,8 +92,7 @@ void menu_navigation_clear(menu_navigation_t *nav, bool pending_push)
if (!nav)
return;
nav->selection_ptr = 0;
menu_navigation_set(nav, 0, true);
menu_driver_navigation_clear(pending_push);
}