summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_backdrops.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_backdrops.c')
-rw-r--r--apps/gui/skin_engine/skin_backdrops.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_backdrops.c b/apps/gui/skin_engine/skin_backdrops.c
index 20010efa26..41de1e1f76 100644
--- a/apps/gui/skin_engine/skin_backdrops.c
+++ b/apps/gui/skin_engine/skin_backdrops.c
@@ -210,8 +210,15 @@ void skin_backdrop_set_buffer(int backdrop_id, struct skin_viewport *svp)
return;
else if (backdrop_id < 0)
{
- /* SCREEN_MAIN is ok here screen only matters if passed VP is NULL */
- screens[SCREEN_MAIN].viewport_set_buffer(&svp->vp, NULL); /*Default*/
+#if 1
+ /* ensure the current vp has been removed so it has to be reselected */
+ screens[SCREEN_MAIN].set_viewport_ex(NULL, 0);
+# if defined(HAVE_REMOTE_LCD)
+ screens[SCREEN_REMOTE].set_viewport_ex(NULL, 0);
+# endif
+#endif
+ /* WARNING: vp-> buffer is invaid till viewport is set to a screen */
+ svp->vp.buffer = NULL; /*Default*/
return;
}