From 0297873f6ac3a9dc0844dc3da9d432e4253d555d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 13 Nov 2006 00:45:21 +0000 Subject: Backdrop support for greyscale targets. WPS backdrop is untested. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 6 +++--- apps/gui/gwps.c | 32 ++++++++++++++++---------------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'apps/gui') 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 @@ #include "bmp.h" #include "atoi.h" #endif -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 #include "backdrop.h" #endif #include "dsp.h" @@ -143,7 +143,7 @@ bool wps_data_preload_tags(struct wps_data *data, char *buf, } break; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 case 'X': /* Backdrop image - must be the same size as the LCD */ { @@ -2473,7 +2473,7 @@ bool gui_wps_display(void) if(i == 0) { #ifdef HAVE_LCD_BITMAP -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 unload_wps_backdrop(); #endif 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 @@ #include "abrepeat.h" #include "playback.h" #include "splash.h" -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 #include "backdrop.h" #endif #include "ata_idle_notify.h" @@ -104,9 +104,9 @@ long gui_wps_show(void) { gui_wps_set_margin(&gui_wps[i]); } -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); -#endif /* HAVE_LCD_COLOR */ +#endif /* LCD_DEPTH > 1 */ #endif #ifdef AB_REPEAT_ENABLE @@ -201,12 +201,12 @@ long gui_wps_show(void) switch(button) { case ACTION_WPS_CONTEXT: -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif action_signalscreenchange(); onplay(wps_state.id3->path, TREE_ATTR_MPA, CONTEXT_WPS); -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); #endif #ifdef HAVE_LCD_BITMAP @@ -422,13 +422,13 @@ long gui_wps_show(void) FOR_NB_SCREENS(i) gui_wps[i].display->stop_scroll(); -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif action_signalscreenchange(); if (main_menu()) return true; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); #endif #ifdef HAVE_LCD_BITMAP @@ -443,12 +443,12 @@ long gui_wps_show(void) #ifdef HAVE_QUICKSCREEN case ACTION_WPS_QUICKSCREEN: -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif if (quick_screen_quick(button)) return SYS_USB_CONNECTED; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); #endif #ifdef HAVE_LCD_BITMAP @@ -464,7 +464,7 @@ long gui_wps_show(void) /* screen settings */ #ifdef BUTTON_F3 case ACTION_F3: -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif if (quick_screen_f3(BUTTON_F3)) @@ -482,13 +482,13 @@ long gui_wps_show(void) /* pitch screen */ #ifdef HAVE_PITCHSCREEN case ACTION_WPS_PITCHSCREEN: -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif action_signalscreenchange(); if (1 == pitch_screen()) return SYS_USB_CONNECTED; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); #endif restore = true; @@ -533,11 +533,11 @@ long gui_wps_show(void) break; case ACTION_WPS_ID3SCREEN: -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif browse_id3(); -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_wps_backdrop(); #endif #ifdef HAVE_LCD_BITMAP @@ -559,7 +559,7 @@ long gui_wps_show(void) case SYS_POWEROFF: bookmark_autobookmark(); -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 show_main_backdrop(); #endif default_event_handler(SYS_POWEROFF); @@ -868,7 +868,7 @@ void gui_sync_wps_init(void) gui_wps_set_data(&gui_wps[i], &wps_datas[i]); gui_wps_set_statusbar(&gui_wps[i], &statusbars.statusbars[i]); } -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 unload_wps_backdrop(); #endif } -- cgit v1.2.3