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/plugin.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 32412bc2ee..774ae547a3 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -396,6 +396,9 @@ int plugin_load(const char* plugin, void* parameter) #ifdef HAVE_LCD_BITMAP int xm, ym; #endif +#ifdef HAVE_LCD_COLOR + fb_data* old_backdrop; +#endif if (pfn_tsr_exit != NULL) /* if we have a resident old plugin: */ { @@ -404,6 +407,10 @@ int plugin_load(const char* plugin, void* parameter) plugin_loaded = false; } +#ifdef HAVE_LCD_COLOR + old_backdrop = lcd_get_backdrop(); + lcd_set_backdrop(NULL); +#endif lcd_clear_display(); #ifdef HAVE_LCD_BITMAP xm = lcd_getxmargin(); @@ -481,6 +488,9 @@ int plugin_load(const char* plugin, void* parameter) /* restore margins */ lcd_setmargins(xm,ym); #endif /* HAVE_LCD_BITMAP */ +#ifdef HAVE_LCD_COLOR + lcd_set_backdrop(old_backdrop); +#endif if (pfn_tsr_exit == NULL) plugin_loaded = false; -- cgit v1.2.3