diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-27 06:47:56 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-27 06:47:56 +0000 |
commit | 2565389402662a5f29c0c00eb1db3d80b1f37478 (patch) | |
tree | 730e8276753414fc1984a3edbdad7529e058f558 /apps/gui/wps.c | |
parent | 27b8b73b86ecf648a15e9793cd8893ca49734cfb (diff) | |
download | rockbox-2565389402662a5f29c0c00eb1db3d80b1f37478.tar.gz rockbox-2565389402662a5f29c0c00eb1db3d80b1f37478.zip |
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
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 | } |