mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Update SBS on WPS exit only when both use extra framebuffer
Change-Id: I853add515231f319cc76f16f322ceb23bc920d72
This commit is contained in:
parent
856da7f366
commit
c1222d65e2
1 changed files with 6 additions and 1 deletions
|
@ -545,8 +545,13 @@ static void gwps_leave_wps(bool theme_enabled)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_BACKDROP_IMAGE
|
#ifdef HAVE_BACKDROP_IMAGE
|
||||||
skin_backdrop_show(sb_get_backdrop(i));
|
skin_backdrop_show(sb_get_backdrop(i));
|
||||||
#endif
|
|
||||||
|
/* The following is supposed to erase any traces of %VB
|
||||||
|
viewports drawn by the WPS. May need further thought... */
|
||||||
|
struct wps_data *sbs = skin_get_gwps(CUSTOM_STATUSBAR, i)->data;
|
||||||
|
if (gwps->data->use_extra_framebuffer && sbs->use_extra_framebuffer)
|
||||||
skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
|
skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
|
||||||
|
#endif
|
||||||
viewportmanager_theme_undo(i, skin_has_sbs(gwps));
|
viewportmanager_theme_undo(i, skin_has_sbs(gwps));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue