diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-02-02 20:42:56 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-02-02 20:42:56 +0000 |
| commit | d9e5b67b71cf246c11da8a9083af21752ac7bd15 (patch) | |
| tree | 99ac1903b7b0a7197483fa64add73e6062d169af /apps/settings_menu.c | |
| parent | 9b4b4d0bf2366ebbbb3cbb14eeb457da9f2658eb (diff) | |
| download | rockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.zip rockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.tar.gz rockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.tar.bz2 rockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.tar.xz | |
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
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 2de6d93..e70ed67 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 */ @@ -1563,6 +1575,9 @@ static bool lcd_settings_menu(void) { 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 }; m=menu_init( items, sizeof(items) / sizeof(*items), NULL, |