summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-12-21 05:19:12 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-12-21 05:19:12 +0000
commit9d1832cfba5ad91c815aa181b299f5cd53252681 (patch)
tree1bc915c0ec15e996189cced2001f7e76f38c49ab /apps/menus
parent88ae46cc88acf38c72ce3f9f7618d07007c92cd7 (diff)
fix FS#10870 - slightly change the viewportmanager theme undo-er to be able to force an update even if the theme isnt being toggled from off to on which caused WPS artifacts when leaving the WPS if the theme was enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24087 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/eq_menu.c2
-rw-r--r--apps/menus/theme_menu.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 1fc176213f..05ee3f3633 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -576,7 +576,7 @@ bool eq_menu_graphical(void)
screens[i].setfont(FONT_UI);
screens[i].clear_display();
screens[i].set_viewport(NULL);
- viewportmanager_theme_undo(i);
+ viewportmanager_theme_undo(i, false);
}
return result;
}
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c
index 9c9a2b2c72..777ab7f815 100644
--- a/apps/menus/theme_menu.c
+++ b/apps/menus/theme_menu.c
@@ -51,7 +51,7 @@ static int clear_main_backdrop(void)
backdrop_show(BACKDROP_MAIN);
/* force a full redraw so the whole backdrop is cleared */
viewportmanager_theme_enable(SCREEN_MAIN, false, NULL);
- viewportmanager_theme_undo(SCREEN_MAIN);
+ viewportmanager_theme_undo(SCREEN_MAIN, false);
settings_save();
return 0;
}
@@ -165,7 +165,7 @@ static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item
send_event(GUI_EVENT_STATUSBAR_TOGGLE, NULL);
/* force a full redraw */
viewportmanager_theme_enable(screen, false, NULL);
- viewportmanager_theme_undo(screen);
+ viewportmanager_theme_undo(screen, false);
break;
}
return ACTION_REDRAW;