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/tree.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 74c1059a60..b61ed0a43d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -101,6 +101,9 @@ const struct filetype filetypes[] = { { "wps", TREE_ATTR_WPS, Icon_Wps, VOICE_EXT_WPS }, #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 }, @@ -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. */ -- cgit v1.2.3