diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 762b7f78a6..e24ab66393 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -475,6 +475,13 @@ static bool evaluate_conditional(struct gui_wps *gwps, int *token_index) | |||
475 | if (data->tokens[i].type == WPS_TOKEN_IMAGE_PRELOAD_DISPLAY) | 475 | if (data->tokens[i].type == WPS_TOKEN_IMAGE_PRELOAD_DISPLAY) |
476 | clear_image_pos(gwps, find_image(data->tokens[i].value.i&0xFF, gwps->data)); | 476 | clear_image_pos(gwps, find_image(data->tokens[i].value.i&0xFF, gwps->data)); |
477 | #endif | 477 | #endif |
478 | #ifdef HAVE_ALBUMART | ||
479 | if (data->albumart && data->tokens[i].type == WPS_TOKEN_ALBUMART_DISPLAY) | ||
480 | { | ||
481 | draw_album_art(gwps, audio_current_aa_hid(), true); | ||
482 | data->albumart->draw = false; | ||
483 | } | ||
484 | #endif | ||
478 | } | 485 | } |
479 | 486 | ||
480 | return true; | 487 | return true; |
@@ -622,14 +629,6 @@ static bool get_line(struct gui_wps *gwps, | |||
622 | } | 629 | } |
623 | } | 630 | } |
624 | break; | 631 | break; |
625 | #ifdef HAVE_ALBUMART | ||
626 | case WPS_TOKEN_ALBUMART_DISPLAY: | ||
627 | if (data->albumart) | ||
628 | { | ||
629 | data->albumart->draw = true; | ||
630 | } | ||
631 | break; | ||
632 | #endif | ||
633 | default: | 632 | default: |
634 | { | 633 | { |
635 | /* get the value of the tag and copy it to the buffer */ | 634 | /* get the value of the tag and copy it to the buffer */ |