summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-25 21:44:56 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-25 21:44:56 +0000
commit7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435 (patch)
treee59f8442d401de4c58750c793276ac8a65de67ae /apps/gui/gwps.c
parent205ec3279d32a152f6046ecc6ad66c39f097fa4d (diff)
downloadrockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.tar.gz
rockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.zip
Add backdrop support for LCD remotes with depth > 1-bit. Only WPS backdrops, but the groundwork is laid for main backdrops too (all that's really needed are menus to set/clear them).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13263 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r--apps/gui/gwps.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index e46f804af8..97f3b4dbbc 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -119,6 +119,10 @@ long gui_wps_show(void)
119#endif /* LCD_DEPTH > 1 */ 119#endif /* LCD_DEPTH > 1 */
120#endif 120#endif
121 121
122#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
123 show_remote_wps_backdrop();
124#endif
125
122#ifdef AB_REPEAT_ENABLE 126#ifdef AB_REPEAT_ENABLE
123 ab_repeat_init(); 127 ab_repeat_init();
124 ab_reset_markers(); 128 ab_reset_markers();
@@ -235,6 +239,9 @@ long gui_wps_show(void)
235#if LCD_DEPTH > 1 239#if LCD_DEPTH > 1
236 show_main_backdrop(); 240 show_main_backdrop();
237#endif 241#endif
242#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
243 show_remote_main_backdrop();
244#endif
238 action_signalscreenchange(); 245 action_signalscreenchange();
239 if (onplay(wps_state.id3->path, FILE_ATTR_AUDIO, CONTEXT_WPS) 246 if (onplay(wps_state.id3->path, FILE_ATTR_AUDIO, CONTEXT_WPS)
240 == ONPLAY_MAINMENU) 247 == ONPLAY_MAINMENU)
@@ -242,6 +249,9 @@ long gui_wps_show(void)
242#if LCD_DEPTH > 1 249#if LCD_DEPTH > 1
243 show_wps_backdrop(); 250 show_wps_backdrop();
244#endif 251#endif
252#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
253 show_remote_wps_backdrop();
254#endif
245#ifdef HAVE_LCD_BITMAP 255#ifdef HAVE_LCD_BITMAP
246 FOR_NB_SCREENS(i) 256 FOR_NB_SCREENS(i)
247 { 257 {
@@ -501,11 +511,17 @@ long gui_wps_show(void)
501#if LCD_DEPTH > 1 511#if LCD_DEPTH > 1
502 show_main_backdrop(); 512 show_main_backdrop();
503#endif 513#endif
514#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
515 show_remote_main_backdrop();
516#endif
504 if (quick_screen_quick(button)) 517 if (quick_screen_quick(button))
505 return SYS_USB_CONNECTED; 518 return SYS_USB_CONNECTED;
506#if LCD_DEPTH > 1 519#if LCD_DEPTH > 1
507 show_wps_backdrop(); 520 show_wps_backdrop();
508#endif 521#endif
522#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
523 show_remote_wps_backdrop();
524#endif
509#ifdef HAVE_LCD_BITMAP 525#ifdef HAVE_LCD_BITMAP
510 FOR_NB_SCREENS(i) 526 FOR_NB_SCREENS(i)
511 { 527 {
@@ -522,6 +538,9 @@ long gui_wps_show(void)
522#if LCD_DEPTH > 1 538#if LCD_DEPTH > 1
523 show_main_backdrop(); 539 show_main_backdrop();
524#endif 540#endif
541#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
542 show_remote_main_backdrop();
543#endif
525 if (quick_screen_f3(BUTTON_F3)) 544 if (quick_screen_f3(BUTTON_F3))
526 return SYS_USB_CONNECTED; 545 return SYS_USB_CONNECTED;
527#ifdef HAVE_LCD_BITMAP 546#ifdef HAVE_LCD_BITMAP
@@ -540,12 +559,18 @@ long gui_wps_show(void)
540#if LCD_DEPTH > 1 559#if LCD_DEPTH > 1
541 show_main_backdrop(); 560 show_main_backdrop();
542#endif 561#endif
562#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
563 show_remote_main_backdrop();
564#endif
543 action_signalscreenchange(); 565 action_signalscreenchange();
544 if (1 == pitch_screen()) 566 if (1 == pitch_screen())
545 return SYS_USB_CONNECTED; 567 return SYS_USB_CONNECTED;
546#if LCD_DEPTH > 1 568#if LCD_DEPTH > 1
547 show_wps_backdrop(); 569 show_wps_backdrop();
548#endif 570#endif
571#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
572 show_remote_wps_backdrop();
573#endif
549 restore = true; 574 restore = true;
550 break; 575 break;
551#endif /* HAVE_PITCHSCREEN */ 576#endif /* HAVE_PITCHSCREEN */
@@ -572,10 +597,16 @@ long gui_wps_show(void)
572#if LCD_DEPTH > 1 597#if LCD_DEPTH > 1
573 show_main_backdrop(); 598 show_main_backdrop();
574#endif 599#endif
600#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
601 show_remote_main_backdrop();
602#endif
575 browse_id3(); 603 browse_id3();
576#if LCD_DEPTH > 1 604#if LCD_DEPTH > 1
577 show_wps_backdrop(); 605 show_wps_backdrop();
578#endif 606#endif
607#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
608 show_remote_wps_backdrop();
609#endif
579#ifdef HAVE_LCD_BITMAP 610#ifdef HAVE_LCD_BITMAP
580 FOR_NB_SCREENS(i) 611 FOR_NB_SCREENS(i)
581 { 612 {
@@ -598,6 +629,9 @@ long gui_wps_show(void)
598#if LCD_DEPTH > 1 629#if LCD_DEPTH > 1
599 show_main_backdrop(); 630 show_main_backdrop();
600#endif 631#endif
632#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
633 show_remote_main_backdrop();
634#endif
601 default_event_handler(SYS_POWEROFF); 635 default_event_handler(SYS_POWEROFF);
602 break; 636 break;
603 637
@@ -751,4 +785,7 @@ void gui_sync_wps_init(void)
751#if LCD_DEPTH > 1 785#if LCD_DEPTH > 1
752 unload_wps_backdrop(); 786 unload_wps_backdrop();
753#endif 787#endif
788#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
789 unload_remote_wps_backdrop();
790#endif
754} 791}