From 2565389402662a5f29c0c00eb1db3d80b1f37478 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 27 Jan 2010 06:47:56 +0000 Subject: futile attempt to keep the ondioSP rombox working. This will almost certainly be the last release with it. (The backdrop API is chaning very soon after release so this is no big deal) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24340 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/gui/wps.c') 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) { bool loaded_ok; +#if LCD_DEPTH > 1 screens[screen].backdrop_unload(BACKDROP_SKIN_WPS); +#endif #ifndef __PCTOOL__ /* @@ -561,7 +563,9 @@ static void gwps_leave_wps(void) FOR_NB_SCREENS(i) { gui_wps[i].display->stop_scroll(); +#if LCD_DEPTH > 1 gui_wps[i].display->backdrop_show(BACKDROP_MAIN); +#endif #ifdef HAVE_LCD_BITMAP bool draw = false; @@ -610,8 +614,8 @@ static void gwps_enter_wps(void) vp->fg_pattern = display->get_foreground(); vp->bg_pattern = display->get_background(); } -#endif display->backdrop_show(BACKDROP_SKIN_WPS); +#endif /* make the backdrop actually take effect */ display->clear_display(); skin_update(gwps, WPS_REFRESH_ALL); @@ -1294,7 +1298,9 @@ void gui_sync_wps_init(void) /* Currently no seperate wps_state needed/possible so use the only available ( "global" ) one */ gui_wps[i].state = &wps_state; +#if LCD_DEPTH > 1 gui_wps[i].display->backdrop_unload(BACKDROP_SKIN_WPS); +#endif /* must point to the same struct for both screens */ gui_wps[i].sync_data = &wps_sync_data; } -- cgit v1.2.3