summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-02-01 04:47:19 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-02-01 04:47:19 +0000
commitbb86299b81f41bae1f34f18f0cf99d15c60749d7 (patch)
tree242fc601bb65ec139cea0920d288093ee017ffc9 /apps/gui/skin_engine
parente457ccfea51bf823a5c1507cd161e74a195061c3 (diff)
make sure skins always draw with their backdrop, otherwise the backdrop only changes on a full redraw which usually ends up being in the wrong order
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_display.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 1a056291bc..c1aebad87b 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -1006,16 +1006,17 @@ static bool skin_redraw(struct gui_wps *gwps, unsigned refresh_mode)
#endif
+#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
+ display->backdrop_show(data->backdrop);
+#endif
+
+
/* reset to first subline if refresh all flag is set */
if (refresh_mode == WPS_REFRESH_ALL)
{
struct skin_line *line;
struct skin_viewport *skin_viewport = find_viewport(VP_DEFAULT_LABEL, data);
-#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
- display->backdrop_show(data->backdrop);
-#endif
-
if (!(skin_viewport->hidden_flags & VP_NEVER_VISIBLE))
{
display->set_viewport(&skin_viewport->vp);