From bb86299b81f41bae1f34f18f0cf99d15c60749d7 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 1 Feb 2010 04:47:19 +0000 Subject: 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 --- apps/gui/skin_engine/skin_display.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/gui/skin_engine/skin_display.c') 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); -- cgit v1.2.3