summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-12 01:31:42 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-12 01:31:42 +0000
commit81dedee7d050e2b52dfe1a294dbd349c4fe79155 (patch)
tree23cd47d71b9f6aead2d3d83b0b0131a36f806709 /apps/gui/wps_parser.c
parent49639257677ab98dc4730bebf1044ea1ca7591b0 (diff)
downloadrockbox-81dedee7d050e2b52dfe1a294dbd349c4fe79155.tar.gz
rockbox-81dedee7d050e2b52dfe1a294dbd349c4fe79155.zip
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
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r--apps/gui/wps_parser.c6
1 files changed, 5 insertions, 1 deletions
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[] = {
293 { WPS_TOKEN_IMAGE_PROGRESS_BAR, "P", 0, parse_image_special }, 293 { WPS_TOKEN_IMAGE_PROGRESS_BAR, "P", 0, parse_image_special },
294#ifdef HAVE_ALBUMART 294#ifdef HAVE_ALBUMART
295 { WPS_NO_TOKEN, "Cl", 0, parse_albumart_load }, 295 { WPS_NO_TOKEN, "Cl", 0, parse_albumart_load },
296 { WPS_TOKEN_ALBUMART_DISPLAY, "C", WPS_REFRESH_DYNAMIC, 296 { WPS_TOKEN_ALBUMART_DISPLAY, "C", WPS_REFRESH_STATIC,
297 parse_albumart_conditional }, 297 parse_albumart_conditional },
298#endif 298#endif
299#if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1)) 299#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,
824 } 824 }
825 } 825 }
826 else 826 else
827 {
828 /* This %C tag is in a conditional construct. */
829 wps_data->albumart_cond_index = condindex[level];
827 return 0; 830 return 0;
831 }
828}; 832};
829#endif /* HAVE_ALBUMART */ 833#endif /* HAVE_ALBUMART */
830 834