mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
revert part of r18933 which fixes FS#9600.
This fix is a bit wasteful, but fine untill the menu starts being called with a parent viewport. The real fix should be using a callback to notify the menu to reinit its viewports when the theme changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19310 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
815998c669
commit
2c4f40692f
1 changed files with 2 additions and 0 deletions
|
@ -642,6 +642,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
|||
return_value = temp->function->function();
|
||||
if (!(menu->flags&MENU_EXITAFTERTHISMENU) || (temp->flags&MENU_EXITAFTERTHISMENU))
|
||||
{
|
||||
init_default_menu_viewports(menu_vp, hide_bars);
|
||||
init_menu_lists(menu, &lists, selected, true, vps);
|
||||
}
|
||||
if (temp->flags&MENU_FUNC_CHECK_RETVAL)
|
||||
|
@ -659,6 +660,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
|||
{
|
||||
if (do_setting_from_menu(temp, menu_vp))
|
||||
{
|
||||
init_default_menu_viewports(menu_vp, hide_bars);
|
||||
init_menu_lists(menu, &lists, selected, true,vps);
|
||||
redraw_lists = false; /* above does the redraw */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue