From 9d1832cfba5ad91c815aa181b299f5cd53252681 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 21 Dec 2009 05:19:12 +0000 Subject: 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 --- apps/gui/viewport.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/gui/viewport.h') diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index 6cb8d1f574..fffd2fedf2 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h @@ -53,8 +53,10 @@ void viewport_set_fullscreen(struct viewport *vp, #ifdef HAVE_LCD_BITMAP void viewportmanager_theme_enable(enum screen_type screen, bool enable, struct viewport *viewport); - -void viewportmanager_theme_undo(enum screen_type screen); +/* Force will cause a redraw even if the theme was previously and + * currently enabled (i,e the undo doing nothing). + * Should almost always be set to false except coming out of fully skinned screens */ +void viewportmanager_theme_undo(enum screen_type screen, bool force_redraw); /* call this when a theme changed */ void viewportmanager_theme_changed(const int); -- cgit v1.2.2