summaryrefslogtreecommitdiffstats
path: root/apps/gui/viewport.h
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/gui/viewport.h
parent88ae46cc88acf38c72ce3f9f7618d07007c92cd7 (diff)
downloadrockbox-9d1832cfba5ad91c815aa181b299f5cd53252681.tar.gz
rockbox-9d1832cfba5ad91c815aa181b299f5cd53252681.tar.bz2
rockbox-9d1832cfba5ad91c815aa181b299f5cd53252681.zip
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/gui/viewport.h')
-rw-r--r--apps/gui/viewport.h6
1 files changed, 4 insertions, 2 deletions
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);