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/settings_menu.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 0cbe5344fb..83f2452613 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -81,7 +81,7 @@ void dac_line_in(bool enable); #include "dsp.h" #endif -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 #include "backdrop.h" #endif @@ -393,7 +393,7 @@ static bool invert_cursor(void) return rc; } -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 /** * Menu to clear the backdrop image */ @@ -404,7 +404,9 @@ static bool clear_main_backdrop(void) show_main_backdrop(); return false; } +#endif +#ifdef HAVE_LCD_COLOR /** * Menu for fore/back colors */ @@ -1969,8 +1971,10 @@ static bool lcd_settings_menu(void) #endif { ID2P(LANG_INVERT_CURSOR), invert_cursor }, #endif -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 { ID2P(LANG_CLEAR_BACKDROP), clear_main_backdrop }, +#endif +#ifdef HAVE_LCD_COLOR { ID2P(LANG_BACKGROUND_COLOR), set_bg_color }, { ID2P(LANG_FOREGROUND_COLOR), set_fg_color }, { ID2P(LANG_RESET_COLORS), reset_color }, -- cgit v1.2.3