summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-18 05:45:15 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-18 05:45:15 +0000
commit05fd9ee182a6a9147bd2fe285ee91307e6620c96 (patch)
tree228af1cbb0e7d95e195d48a92d153d3b375cd83b
parent6d16d1cf3d327fa19745b8ae921d58381fbee0f6 (diff)
downloadrockbox-05fd9ee182a6a9147bd2fe285ee91307e6620c96.tar.gz
rockbox-05fd9ee182a6a9147bd2fe285ee91307e6620c96.zip
Actually fix AA display... previous commit was borked
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22728 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 3717dadd48..ede1871414 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1120,13 +1120,10 @@ static int parse_albumart_display(const char *wps_bufptr,
struct wps_data *wps_data)
{
(void)wps_bufptr;
- if (wps_data->num_tokens > 1)
+ struct wps_token *prev = token-1;
+ if ((wps_data->num_tokens > 1) && (prev->type == WPS_TOKEN_CONDITIONAL))
{
- struct wps_token *prev = token-1;
- if (prev->type == WPS_TOKEN_CONDITIONAL)
- {
- token->type = WPS_TOKEN_ALBUMART_FOUND;
- }
+ token->type = WPS_TOKEN_ALBUMART_FOUND;
}
else if (wps_data->albumart)
{