diff options
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r-- | apps/gui/skin_engine/skin_backdrops.c | 11 |
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) | |||
210 | return; | 210 | return; |
211 | else if (backdrop_id < 0) | 211 | else if (backdrop_id < 0) |
212 | { | 212 | { |
213 | /* SCREEN_MAIN is ok here screen only matters if passed VP is NULL */ | 213 | #if 1 |
214 | screens[SCREEN_MAIN].viewport_set_buffer(&svp->vp, NULL); /*Default*/ | 214 | /* ensure the current vp has been removed so it has to be reselected */ |
215 | screens[SCREEN_MAIN].set_viewport_ex(NULL, 0); | ||
216 | # if defined(HAVE_REMOTE_LCD) | ||
217 | screens[SCREEN_REMOTE].set_viewport_ex(NULL, 0); | ||
218 | # endif | ||
219 | #endif | ||
220 | /* WARNING: vp-> buffer is invaid till viewport is set to a screen */ | ||
221 | svp->vp.buffer = NULL; /*Default*/ | ||
215 | return; | 222 | return; |
216 | } | 223 | } |
217 | 224 | ||