summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-02 20:42:56 +0000
committerDave Chapman <dave@dchapman.com>2006-02-02 20:42:56 +0000
commitd9e5b67b71cf246c11da8a9083af21752ac7bd15 (patch)
tree99ac1903b7b0a7197483fa64add73e6062d169af /apps/settings_menu.c
parent9b4b4d0bf2366ebbbb3cbb14eeb457da9f2658eb (diff)
downloadrockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.tar.gz
rockbox-d9e5b67b71cf246c11da8a9083af21752ac7bd15.zip
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.c17
1 files changed, 16 insertions, 1 deletions
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)
300 STR(LANG_INVERT_CURSOR_POINTER), 300 STR(LANG_INVERT_CURSOR_POINTER),
301 NULL); 301 NULL);
302} 302}
303 303
304#ifdef HAVE_LCD_COLOR
305/**
306 * Menu to clear the backdrop image
307 */
308static bool clear_main_backdrop(void)
309{
310 global_settings.backdrop_file[0]=0;
311 lcd_set_backdrop(NULL);
312 return true;
313}
314#endif
315
304/** 316/**
305 * Menu to configure the battery display on status bar 317 * Menu to configure the battery display on status bar
306 */ 318 */
@@ -1563,6 +1575,9 @@ static bool lcd_settings_menu(void)
1563 { ID2P(LANG_FLIP_DISPLAY), flip_display }, 1575 { ID2P(LANG_FLIP_DISPLAY), flip_display },
1564 { ID2P(LANG_INVERT_CURSOR), invert_cursor }, 1576 { ID2P(LANG_INVERT_CURSOR), invert_cursor },
1565#endif 1577#endif
1578#ifdef HAVE_LCD_COLOR
1579 { ID2P(LANG_CLEAR_BACKDROP), clear_main_backdrop },
1580#endif
1566 }; 1581 };
1567 1582
1568 m=menu_init( items, sizeof(items) / sizeof(*items), NULL, 1583 m=menu_init( items, sizeof(items) / sizeof(*items), NULL,