diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-09-17 21:01:32 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-09-17 21:01:32 +0000 |
| commit | 7b6265edf5d2f71cb25d9ee71f30dbe14a2427a6 (patch) | |
| tree | 3ab6e0f9e0a0de95abcc2c20557d83b84022b517 /apps | |
| parent | 5bd3b443ffa2966e4f23f46496111378ac1cf292 (diff) | |
| download | rockbox-7b6265edf5d2f71cb25d9ee71f30dbe14a2427a6.zip rockbox-7b6265edf5d2f71cb25d9ee71f30dbe14a2427a6.tar.gz rockbox-7b6265edf5d2f71cb25d9ee71f30dbe14a2427a6.tar.bz2 rockbox-7b6265edf5d2f71cb25d9ee71f30dbe14a2427a6.tar.xz | |
Fix a bug where the conditional use of %C (i.e. %?C) caused the album art to draw (noticed in FS#10596).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22721 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/skin_engine/skin_display.c | 15 | ||||
| -rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 1 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index e24ab66..762b7f7 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -475,13 +475,6 @@ static bool evaluate_conditional(struct gui_wps *gwps, int *token_index) if (data->tokens[i].type == WPS_TOKEN_IMAGE_PRELOAD_DISPLAY) clear_image_pos(gwps, find_image(data->tokens[i].value.i&0xFF, gwps->data)); #endif -#ifdef HAVE_ALBUMART - if (data->albumart && data->tokens[i].type == WPS_TOKEN_ALBUMART_DISPLAY) - { - draw_album_art(gwps, audio_current_aa_hid(), true); - data->albumart->draw = false; - } -#endif } return true; @@ -629,6 +622,14 @@ static bool get_line(struct gui_wps *gwps, } } break; +#ifdef HAVE_ALBUMART + case WPS_TOKEN_ALBUMART_DISPLAY: + if (data->albumart) + { + data->albumart->draw = true; + } + break; +#endif default: { /* get the value of the tag and copy it to the buffer */ diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 7f83da0..6d4fef5 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -322,7 +322,6 @@ const char *get_token_value(struct gui_wps *gwps, if (!data->albumart) return NULL; if (audio_current_aa_hid() >= 0) { - data->albumart->draw = true; return "C"; } data->albumart->draw = false; |