diff options
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index cb73e6f92c..3c0982270e 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -99,7 +99,9 @@ void wps_data_load(enum screen_type screen, const char *buf, bool isfile) | |||
99 | { | 99 | { |
100 | bool loaded_ok; | 100 | bool loaded_ok; |
101 | 101 | ||
102 | #if LCD_DEPTH > 1 | ||
102 | screens[screen].backdrop_unload(BACKDROP_SKIN_WPS); | 103 | screens[screen].backdrop_unload(BACKDROP_SKIN_WPS); |
104 | #endif | ||
103 | 105 | ||
104 | #ifndef __PCTOOL__ | 106 | #ifndef __PCTOOL__ |
105 | /* | 107 | /* |
@@ -561,7 +563,9 @@ static void gwps_leave_wps(void) | |||
561 | FOR_NB_SCREENS(i) | 563 | FOR_NB_SCREENS(i) |
562 | { | 564 | { |
563 | gui_wps[i].display->stop_scroll(); | 565 | gui_wps[i].display->stop_scroll(); |
566 | #if LCD_DEPTH > 1 | ||
564 | gui_wps[i].display->backdrop_show(BACKDROP_MAIN); | 567 | gui_wps[i].display->backdrop_show(BACKDROP_MAIN); |
568 | #endif | ||
565 | 569 | ||
566 | #ifdef HAVE_LCD_BITMAP | 570 | #ifdef HAVE_LCD_BITMAP |
567 | bool draw = false; | 571 | bool draw = false; |
@@ -610,8 +614,8 @@ static void gwps_enter_wps(void) | |||
610 | vp->fg_pattern = display->get_foreground(); | 614 | vp->fg_pattern = display->get_foreground(); |
611 | vp->bg_pattern = display->get_background(); | 615 | vp->bg_pattern = display->get_background(); |
612 | } | 616 | } |
613 | #endif | ||
614 | display->backdrop_show(BACKDROP_SKIN_WPS); | 617 | display->backdrop_show(BACKDROP_SKIN_WPS); |
618 | #endif | ||
615 | /* make the backdrop actually take effect */ | 619 | /* make the backdrop actually take effect */ |
616 | display->clear_display(); | 620 | display->clear_display(); |
617 | skin_update(gwps, WPS_REFRESH_ALL); | 621 | skin_update(gwps, WPS_REFRESH_ALL); |
@@ -1294,7 +1298,9 @@ void gui_sync_wps_init(void) | |||
1294 | /* Currently no seperate wps_state needed/possible | 1298 | /* Currently no seperate wps_state needed/possible |
1295 | so use the only available ( "global" ) one */ | 1299 | so use the only available ( "global" ) one */ |
1296 | gui_wps[i].state = &wps_state; | 1300 | gui_wps[i].state = &wps_state; |
1301 | #if LCD_DEPTH > 1 | ||
1297 | gui_wps[i].display->backdrop_unload(BACKDROP_SKIN_WPS); | 1302 | gui_wps[i].display->backdrop_unload(BACKDROP_SKIN_WPS); |
1303 | #endif | ||
1298 | /* must point to the same struct for both screens */ | 1304 | /* must point to the same struct for both screens */ |
1299 | gui_wps[i].sync_data = &wps_sync_data; | 1305 | gui_wps[i].sync_data = &wps_sync_data; |
1300 | } | 1306 | } |