1
0
Fork 0
forked from len0rd/rockbox

Update SBS on WPS exit only when both use extra framebuffer

Change-Id: I853add515231f319cc76f16f322ceb23bc920d72
This commit is contained in:
Christian Soffke 2025-03-20 17:52:24 +01:00
parent 856da7f366
commit c1222d65e2

View file

@ -545,8 +545,13 @@ static void gwps_leave_wps(bool theme_enabled)
{
#ifdef HAVE_BACKDROP_IMAGE
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);
#endif
viewportmanager_theme_undo(i, skin_has_sbs(gwps));
}
}