diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-25 21:44:56 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-25 21:44:56 +0000 |
| commit | 7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435 (patch) | |
| tree | e59f8442d401de4c58750c793276ac8a65de67ae /apps/gui/wps_parser.c | |
| parent | 205ec3279d32a152f6046ecc6ad66c39f097fa4d (diff) | |
| download | rockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.zip rockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.tar.gz rockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.tar.bz2 rockbox-7fdfa56454c0fab8cbdfcf50d852dc6fa90d4435.tar.xz | |
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
Diffstat (limited to 'apps/gui/wps_parser.c')
| -rw-r--r-- | apps/gui/wps_parser.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index b6cda91..2b5d1bb 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 */ |