summaryrefslogtreecommitdiff
path: root/apps/tree.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/tree.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/tree.c')
-rw-r--r--apps/tree.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 74c1059a60..b61ed0a43d 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -102,6 +102,9 @@ const struct filetype filetypes[] = {
102#ifdef HAVE_REMOTE_LCD 102#ifdef HAVE_REMOTE_LCD
103 { "rwps", TREE_ATTR_RWPS, Icon_Wps, VOICE_EXT_RWPS }, 103 { "rwps", TREE_ATTR_RWPS, Icon_Wps, VOICE_EXT_RWPS },
104#endif 104#endif
105#ifdef HAVE_LCD_COLOR
106 { "bmp", TREE_ATTR_BMP, Icon_Wps, VOICE_EXT_WPS },
107#endif
105 { "lng", TREE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, 108 { "lng", TREE_ATTR_LNG, Icon_Language, LANG_LANGUAGE },
106 { "rock",TREE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, 109 { "rock",TREE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK },
107#ifdef HAVE_LCD_BITMAP 110#ifdef HAVE_LCD_BITMAP
@@ -861,10 +864,20 @@ static bool dirbrowse(void)
861 if (start_wps && audio_status() ) 864 if (start_wps && audio_status() )
862 { 865 {
863 int i; 866 int i;
867#if HAVE_LCD_COLOR
868 fb_data* old_backdrop;
869#endif
870
864 FOR_NB_SCREENS(i) 871 FOR_NB_SCREENS(i)
865 screens[i].stop_scroll(); 872 screens[i].stop_scroll();
873#if HAVE_LCD_COLOR
874 old_backdrop = lcd_get_backdrop();
875#endif
866 if (gui_wps_show() == SYS_USB_CONNECTED) 876 if (gui_wps_show() == SYS_USB_CONNECTED)
867 reload_dir = true; 877 reload_dir = true;
878#if HAVE_LCD_COLOR
879 lcd_set_backdrop(old_backdrop);
880#endif
868#ifdef HAVE_HOTSWAP 881#ifdef HAVE_HOTSWAP
869 else 882 else
870 if (!id3db) /* Try reload to catch 'no longer valid' case. */ 883 if (!id3db) /* Try reload to catch 'no longer valid' case. */