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/tree.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/tree.c')
| -rw-r--r-- | apps/tree.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 74c1059..b61ed0a 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -102,6 +102,9 @@ const struct filetype filetypes[] = { #ifdef HAVE_REMOTE_LCD { "rwps", TREE_ATTR_RWPS, Icon_Wps, VOICE_EXT_RWPS }, #endif +#ifdef HAVE_LCD_COLOR + { "bmp", TREE_ATTR_BMP, Icon_Wps, VOICE_EXT_WPS }, +#endif { "lng", TREE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, { "rock",TREE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, #ifdef HAVE_LCD_BITMAP @@ -861,10 +864,20 @@ static bool dirbrowse(void) if (start_wps && audio_status() ) { int i; +#if HAVE_LCD_COLOR + fb_data* old_backdrop; +#endif + FOR_NB_SCREENS(i) screens[i].stop_scroll(); +#if HAVE_LCD_COLOR + old_backdrop = lcd_get_backdrop(); +#endif if (gui_wps_show() == SYS_USB_CONNECTED) reload_dir = true; +#if HAVE_LCD_COLOR + lcd_set_backdrop(old_backdrop); +#endif #ifdef HAVE_HOTSWAP else if (!id3db) /* Try reload to catch 'no longer valid' case. */ |