summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.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_display.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_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c15
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 */