summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-18 05:15:18 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-18 05:15:18 +0000
commitaafeaad65f3e3921cdb16e30098422f2afd84146 (patch)
treef689b6e2c7d798042ef03c7dfb4b6d7b246374e2 /apps/gui/skin_engine/skin_tokens.c
parent7337fd332f0a1d4b37f96f8753c2d1dcc3ffb9eb (diff)
downloadrockbox-aafeaad65f3e3921cdb16e30098422f2afd84146.tar.gz
rockbox-aafeaad65f3e3921cdb16e30098422f2afd84146.zip
fix FS#10599 and do r22721 a slightly better way. the %C tag is internally converted to a different token for display and conditional check.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 6d4fef5ab5..94d8eb4dc6 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -318,13 +318,16 @@ const char *get_token_value(struct gui_wps *gwps,
318 return id3->comment; 318 return id3->comment;
319 319
320#ifdef HAVE_ALBUMART 320#ifdef HAVE_ALBUMART
321 case WPS_TOKEN_ALBUMART_DISPLAY: 321 case WPS_TOKEN_ALBUMART_FOUND:
322 if (!data->albumart) 322 if (data->albumart && audio_current_aa_hid() >= 0) {
323 return NULL;
324 if (audio_current_aa_hid() >= 0) {
325 return "C"; 323 return "C";
326 } 324 }
327 data->albumart->draw = false; 325 return NULL;
326
327 case WPS_TOKEN_ALBUMART_DISPLAY:
328 if (!data->albumart)
329 return NULL;
330 data->albumart->draw = true;
328 return NULL; 331 return NULL;
329#endif 332#endif
330 333