From 7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Wed, 25 Apr 2007 21:44:56 +0000 Subject: Add backdrop support for LCD remotes with depth > 1-bit. Only WPS backdrops, but the groundwork is laid for main backdrops too (all that's really needed are menus to set/clear them). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13263 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'apps/gui/wps_parser.c') diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index b6cda91e74..2b5d1bb321 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -257,7 +257,7 @@ static const struct wps_tag all_tags[] = { { WPS_TOKEN_IMAGE_DISPLAY, "x", 0, parse_image_load }, { WPS_TOKEN_IMAGE_PROGRESS_BAR, "P", 0, parse_image_special }, -#if LCD_DEPTH > 1 +#if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1)) { WPS_TOKEN_IMAGE_BACKDROP, "X", 0, parse_image_special }, #endif #endif @@ -908,17 +908,22 @@ static void load_wps_bitmaps(struct wps_data *wps_data, char *bmpdir) } } -#if LCD_DEPTH > 1 +#if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1)) + if (backdrop_bmp_name) + { + get_image_filename(backdrop_bmp_name, bmpdir, + img_path, sizeof(img_path)); #ifdef HAVE_REMOTE_LCD - if (!wps_data->remote_wps) + if (wps_data->remote_wps) +#if LCD_REMOTE_DEPTH > 1 + load_remote_wps_backdrop(img_path) #endif - if (backdrop_bmp_name) - { - get_image_filename(backdrop_bmp_name, bmpdir, - img_path, sizeof(img_path)); + ; + else +#endif /* HAVE_REMOTE_LCD */ load_wps_backdrop(img_path); - } -#endif + } +#endif /* has backdrop support */ } #endif /* HAVE_LCD_BITMAP */ -- cgit v1.2.3