From d9e5b67b71cf246c11da8a9083af21752ac7bd15 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 2 Feb 2006 20:42:56 +0000 Subject: Patch #1421422 - Backdrop image patch started by Linus, finished by me. Adds ability to set backdrop images for file browser and menus (store full-screen bitmaps in /.rockbox/backdrops/) and also the ability to set a full-screen background image in a WPS using the %X|filename.bmp| WPS tag. Currently only implemented for targets with colour LCDs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8536 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_menu.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 2de6d93c5c..e70ed6767b 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -300,7 +300,19 @@ static bool invert_cursor(void) STR(LANG_INVERT_CURSOR_POINTER), NULL); } - + +#ifdef HAVE_LCD_COLOR +/** + * Menu to clear the backdrop image + */ +static bool clear_main_backdrop(void) +{ + global_settings.backdrop_file[0]=0; + lcd_set_backdrop(NULL); + return true; +} +#endif + /** * Menu to configure the battery display on status bar */ @@ -1562,6 +1574,9 @@ static bool lcd_settings_menu(void) { ID2P(LANG_INVERT), invert }, { ID2P(LANG_FLIP_DISPLAY), flip_display }, { ID2P(LANG_INVERT_CURSOR), invert_cursor }, +#endif +#ifdef HAVE_LCD_COLOR + { ID2P(LANG_CLEAR_BACKDROP), clear_main_backdrop }, #endif }; -- cgit v1.2.3