diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-11-13 00:45:21 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-13 00:45:21 +0000 |
commit | 0297873f6ac3a9dc0844dc3da9d432e4253d555d (patch) | |
tree | cebede6c396a335cc6ccef974e20327f2c2a46dc /apps/gui | |
parent | 8c3f0681b2347ff51680d61f9226c587a9cfdcee (diff) | |
download | rockbox-0297873f6ac3a9dc0844dc3da9d432e4253d555d.tar.gz rockbox-0297873f6ac3a9dc0844dc3da9d432e4253d555d.zip |
Backdrop support for greyscale targets. WPS backdrop is untested.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps-common.c | 6 | ||||
-rw-r--r-- | apps/gui/gwps.c | 32 |
2 files changed, 19 insertions, 19 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 98f2c7e2ed..212f40f3c0 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #include "bmp.h" | 48 | #include "bmp.h" |
49 | #include "atoi.h" | 49 | #include "atoi.h" |
50 | #endif | 50 | #endif |
51 | #ifdef HAVE_LCD_COLOR | 51 | #if LCD_DEPTH > 1 |
52 | #include "backdrop.h" | 52 | #include "backdrop.h" |
53 | #endif | 53 | #endif |
54 | #include "dsp.h" | 54 | #include "dsp.h" |
@@ -143,7 +143,7 @@ bool wps_data_preload_tags(struct wps_data *data, char *buf, | |||
143 | } | 143 | } |
144 | break; | 144 | break; |
145 | 145 | ||
146 | #ifdef HAVE_LCD_COLOR | 146 | #if LCD_DEPTH > 1 |
147 | case 'X': | 147 | case 'X': |
148 | /* Backdrop image - must be the same size as the LCD */ | 148 | /* Backdrop image - must be the same size as the LCD */ |
149 | { | 149 | { |
@@ -2473,7 +2473,7 @@ bool gui_wps_display(void) | |||
2473 | if(i == 0) | 2473 | if(i == 0) |
2474 | { | 2474 | { |
2475 | #ifdef HAVE_LCD_BITMAP | 2475 | #ifdef HAVE_LCD_BITMAP |
2476 | #ifdef HAVE_LCD_COLOR | 2476 | #if LCD_DEPTH > 1 |
2477 | unload_wps_backdrop(); | 2477 | unload_wps_backdrop(); |
2478 | #endif | 2478 | #endif |
2479 | wps_data_load(gui_wps[i].data, | 2479 | wps_data_load(gui_wps[i].data, |
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 115e9f7441..482442cb53 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -54,7 +54,7 @@ | |||
54 | #include "abrepeat.h" | 54 | #include "abrepeat.h" |
55 | #include "playback.h" | 55 | #include "playback.h" |
56 | #include "splash.h" | 56 | #include "splash.h" |
57 | #ifdef HAVE_LCD_COLOR | 57 | #if LCD_DEPTH > 1 |
58 | #include "backdrop.h" | 58 | #include "backdrop.h" |
59 | #endif | 59 | #endif |
60 | #include "ata_idle_notify.h" | 60 | #include "ata_idle_notify.h" |
@@ -104,9 +104,9 @@ long gui_wps_show(void) | |||
104 | { | 104 | { |
105 | gui_wps_set_margin(&gui_wps[i]); | 105 | gui_wps_set_margin(&gui_wps[i]); |
106 | } | 106 | } |
107 | #ifdef HAVE_LCD_COLOR | 107 | #if LCD_DEPTH > 1 |
108 | show_wps_backdrop(); | 108 | show_wps_backdrop(); |
109 | #endif /* HAVE_LCD_COLOR */ | 109 | #endif /* LCD_DEPTH > 1 */ |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #ifdef AB_REPEAT_ENABLE | 112 | #ifdef AB_REPEAT_ENABLE |
@@ -201,12 +201,12 @@ long gui_wps_show(void) | |||
201 | switch(button) | 201 | switch(button) |
202 | { | 202 | { |
203 | case ACTION_WPS_CONTEXT: | 203 | case ACTION_WPS_CONTEXT: |
204 | #ifdef HAVE_LCD_COLOR | 204 | #if LCD_DEPTH > 1 |
205 | show_main_backdrop(); | 205 | show_main_backdrop(); |
206 | #endif | 206 | #endif |
207 | action_signalscreenchange(); | 207 | action_signalscreenchange(); |
208 | onplay(wps_state.id3->path, TREE_ATTR_MPA, CONTEXT_WPS); | 208 | onplay(wps_state.id3->path, TREE_ATTR_MPA, CONTEXT_WPS); |
209 | #ifdef HAVE_LCD_COLOR | 209 | #if LCD_DEPTH > 1 |
210 | show_wps_backdrop(); | 210 | show_wps_backdrop(); |
211 | #endif | 211 | #endif |
212 | #ifdef HAVE_LCD_BITMAP | 212 | #ifdef HAVE_LCD_BITMAP |
@@ -422,13 +422,13 @@ long gui_wps_show(void) | |||
422 | FOR_NB_SCREENS(i) | 422 | FOR_NB_SCREENS(i) |
423 | gui_wps[i].display->stop_scroll(); | 423 | gui_wps[i].display->stop_scroll(); |
424 | 424 | ||
425 | #ifdef HAVE_LCD_COLOR | 425 | #if LCD_DEPTH > 1 |
426 | show_main_backdrop(); | 426 | show_main_backdrop(); |
427 | #endif | 427 | #endif |
428 | action_signalscreenchange(); | 428 | action_signalscreenchange(); |
429 | if (main_menu()) | 429 | if (main_menu()) |
430 | return true; | 430 | return true; |
431 | #ifdef HAVE_LCD_COLOR | 431 | #if LCD_DEPTH > 1 |
432 | show_wps_backdrop(); | 432 | show_wps_backdrop(); |
433 | #endif | 433 | #endif |
434 | #ifdef HAVE_LCD_BITMAP | 434 | #ifdef HAVE_LCD_BITMAP |
@@ -443,12 +443,12 @@ long gui_wps_show(void) | |||
443 | 443 | ||
444 | #ifdef HAVE_QUICKSCREEN | 444 | #ifdef HAVE_QUICKSCREEN |
445 | case ACTION_WPS_QUICKSCREEN: | 445 | case ACTION_WPS_QUICKSCREEN: |
446 | #ifdef HAVE_LCD_COLOR | 446 | #if LCD_DEPTH > 1 |
447 | show_main_backdrop(); | 447 | show_main_backdrop(); |
448 | #endif | 448 | #endif |
449 | if (quick_screen_quick(button)) | 449 | if (quick_screen_quick(button)) |
450 | return SYS_USB_CONNECTED; | 450 | return SYS_USB_CONNECTED; |
451 | #ifdef HAVE_LCD_COLOR | 451 | #if LCD_DEPTH > 1 |
452 | show_wps_backdrop(); | 452 | show_wps_backdrop(); |
453 | #endif | 453 | #endif |
454 | #ifdef HAVE_LCD_BITMAP | 454 | #ifdef HAVE_LCD_BITMAP |
@@ -464,7 +464,7 @@ long gui_wps_show(void) | |||
464 | /* screen settings */ | 464 | /* screen settings */ |
465 | #ifdef BUTTON_F3 | 465 | #ifdef BUTTON_F3 |
466 | case ACTION_F3: | 466 | case ACTION_F3: |
467 | #ifdef HAVE_LCD_COLOR | 467 | #if LCD_DEPTH > 1 |
468 | show_main_backdrop(); | 468 | show_main_backdrop(); |
469 | #endif | 469 | #endif |
470 | if (quick_screen_f3(BUTTON_F3)) | 470 | if (quick_screen_f3(BUTTON_F3)) |
@@ -482,13 +482,13 @@ long gui_wps_show(void) | |||
482 | /* pitch screen */ | 482 | /* pitch screen */ |
483 | #ifdef HAVE_PITCHSCREEN | 483 | #ifdef HAVE_PITCHSCREEN |
484 | case ACTION_WPS_PITCHSCREEN: | 484 | case ACTION_WPS_PITCHSCREEN: |
485 | #ifdef HAVE_LCD_COLOR | 485 | #if LCD_DEPTH > 1 |
486 | show_main_backdrop(); | 486 | show_main_backdrop(); |
487 | #endif | 487 | #endif |
488 | action_signalscreenchange(); | 488 | action_signalscreenchange(); |
489 | if (1 == pitch_screen()) | 489 | if (1 == pitch_screen()) |
490 | return SYS_USB_CONNECTED; | 490 | return SYS_USB_CONNECTED; |
491 | #ifdef HAVE_LCD_COLOR | 491 | #if LCD_DEPTH > 1 |
492 | show_wps_backdrop(); | 492 | show_wps_backdrop(); |
493 | #endif | 493 | #endif |
494 | restore = true; | 494 | restore = true; |
@@ -533,11 +533,11 @@ long gui_wps_show(void) | |||
533 | break; | 533 | break; |
534 | 534 | ||
535 | case ACTION_WPS_ID3SCREEN: | 535 | case ACTION_WPS_ID3SCREEN: |
536 | #ifdef HAVE_LCD_COLOR | 536 | #if LCD_DEPTH > 1 |
537 | show_main_backdrop(); | 537 | show_main_backdrop(); |
538 | #endif | 538 | #endif |
539 | browse_id3(); | 539 | browse_id3(); |
540 | #ifdef HAVE_LCD_COLOR | 540 | #if LCD_DEPTH > 1 |
541 | show_wps_backdrop(); | 541 | show_wps_backdrop(); |
542 | #endif | 542 | #endif |
543 | #ifdef HAVE_LCD_BITMAP | 543 | #ifdef HAVE_LCD_BITMAP |
@@ -559,7 +559,7 @@ long gui_wps_show(void) | |||
559 | 559 | ||
560 | case SYS_POWEROFF: | 560 | case SYS_POWEROFF: |
561 | bookmark_autobookmark(); | 561 | bookmark_autobookmark(); |
562 | #ifdef HAVE_LCD_COLOR | 562 | #if LCD_DEPTH > 1 |
563 | show_main_backdrop(); | 563 | show_main_backdrop(); |
564 | #endif | 564 | #endif |
565 | default_event_handler(SYS_POWEROFF); | 565 | default_event_handler(SYS_POWEROFF); |
@@ -868,7 +868,7 @@ void gui_sync_wps_init(void) | |||
868 | gui_wps_set_data(&gui_wps[i], &wps_datas[i]); | 868 | gui_wps_set_data(&gui_wps[i], &wps_datas[i]); |
869 | gui_wps_set_statusbar(&gui_wps[i], &statusbars.statusbars[i]); | 869 | gui_wps_set_statusbar(&gui_wps[i], &statusbars.statusbars[i]); |
870 | } | 870 | } |
871 | #ifdef HAVE_LCD_COLOR | 871 | #if LCD_DEPTH > 1 |
872 | unload_wps_backdrop(); | 872 | unload_wps_backdrop(); |
873 | #endif | 873 | #endif |
874 | } | 874 | } |