mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
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:
parent
2415373aaf
commit
92b918cb63
@ -363,7 +363,7 @@ static void glui_render_menu_list(glui_handle_t *glui,
|
|||||||
|
|
||||||
menu_entries_get(i, &entry);
|
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,
|
glui_render_label_value(glui, y, width, *frame_count / 40,
|
||||||
entry_selected ? hover_color : normal_color, entry_selected,
|
entry_selected ? hover_color : normal_color, entry_selected,
|
||||||
|
@ -92,8 +92,7 @@ void menu_navigation_clear(menu_navigation_t *nav, bool pending_push)
|
|||||||
if (!nav)
|
if (!nav)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nav->selection_ptr = 0;
|
menu_navigation_set(nav, 0, true);
|
||||||
|
|
||||||
menu_driver_navigation_clear(pending_push);
|
menu_driver_navigation_clear(pending_push);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user