diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-09-07 02:36:56 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-09-07 02:36:56 +0000 |
commit | fe2f042670a59cf73c3775945df9185d933ca9b4 (patch) | |
tree | cbb5efd5f4cad7fd524a43d304e1dbeeddc2cdb1 /apps/gui/skin_engine/skin_tokens.c | |
parent | 8898339fcf07aee644ebcabe77d5a2dd323642ed (diff) | |
download | rockbox-fe2f042670a59cf73c3775945df9185d933ca9b4.tar.gz rockbox-fe2f042670a59cf73c3775945df9185d933ca9b4.zip |
rework AA load/display handling in the skins to get them working in viewports again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22646 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 1254900844..deab0eaf60 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -319,13 +319,13 @@ const char *get_token_value(struct gui_wps *gwps, | |||
319 | 319 | ||
320 | #ifdef HAVE_ALBUMART | 320 | #ifdef HAVE_ALBUMART |
321 | case WPS_TOKEN_ALBUMART_DISPLAY: | 321 | case WPS_TOKEN_ALBUMART_DISPLAY: |
322 | draw_album_art(gwps, audio_current_aa_hid(), false); | 322 | if (!data->albumart) |
323 | return NULL; | 323 | return NULL; |
324 | |||
325 | case WPS_TOKEN_ALBUMART_FOUND: | ||
326 | if (audio_current_aa_hid() >= 0) { | 324 | if (audio_current_aa_hid() >= 0) { |
325 | data->albumart->draw = true; | ||
327 | return "C"; | 326 | return "C"; |
328 | } | 327 | } |
328 | data->albumart->draw = false; | ||
329 | return NULL; | 329 | return NULL; |
330 | #endif | 330 | #endif |
331 | 331 | ||