1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2010-02-01 04:47:19 +00:00
parent e457ccfea5
commit bb86299b81

View file

@ -1006,16 +1006,17 @@ static bool skin_redraw(struct gui_wps *gwps, unsigned refresh_mode)
#endif #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 */ /* reset to first subline if refresh all flag is set */
if (refresh_mode == WPS_REFRESH_ALL) if (refresh_mode == WPS_REFRESH_ALL)
{ {
struct skin_line *line; struct skin_line *line;
struct skin_viewport *skin_viewport = find_viewport(VP_DEFAULT_LABEL, data); 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)) if (!(skin_viewport->hidden_flags & VP_NEVER_VISIBLE))
{ {
display->set_viewport(&skin_viewport->vp); display->set_viewport(&skin_viewport->vp);