From 81dedee7d050e2b52dfe1a294dbd349c4fe79155 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Mon, 12 Nov 2007 01:31:42 +0000 Subject: Various album art improvements: * Make the album art display tag static instead of dynamic, making it be drawn less often, which is good. * Add the possibility of clearing the album art bitmap instead of drawing it, and use this abaility when the display tag is inside a conditional construct. * Add the album art display tag to wps_debug.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15592 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/gui/wps_parser.c') diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 097a60c90f..86bd096e8c 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -293,7 +293,7 @@ static const struct wps_tag all_tags[] = { { WPS_TOKEN_IMAGE_PROGRESS_BAR, "P", 0, parse_image_special }, #ifdef HAVE_ALBUMART { WPS_NO_TOKEN, "Cl", 0, parse_albumart_load }, - { WPS_TOKEN_ALBUMART_DISPLAY, "C", WPS_REFRESH_DYNAMIC, + { WPS_TOKEN_ALBUMART_DISPLAY, "C", WPS_REFRESH_STATIC, parse_albumart_conditional }, #endif #if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1)) @@ -824,7 +824,11 @@ static int parse_albumart_conditional(const char *wps_bufptr, } } else + { + /* This %C tag is in a conditional construct. */ + wps_data->albumart_cond_index = condindex[level]; return 0; + } }; #endif /* HAVE_ALBUMART */ -- cgit v1.2.3