diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-15 14:35:34 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-15 14:35:34 +0000 |
commit | e8bbbdffd41d140e442f184a11b194af61a263d8 (patch) | |
tree | b3b10eb90c8a5eda5a4ae1cb689320740b2babc2 /apps/gui/skin_engine | |
parent | eda80390d5afc4346d2e64a256762df7df30bb17 (diff) | |
download | rockbox-e8bbbdffd41d140e442f184a11b194af61a263d8.tar.gz rockbox-e8bbbdffd41d140e442f184a11b194af61a263d8.zip |
fix FS#11519 - clock tags wernt updating like they should
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27822 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 4 | ||||
-rw-r--r-- | apps/gui/skin_engine/skin_render.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 341056ff87..08b1880f4e 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1277,9 +1277,9 @@ static int skin_element_callback(struct skin_element* element, void* data) | |||
1277 | memset(token, 0, sizeof(*token)); | 1277 | memset(token, 0, sizeof(*token)); |
1278 | token->type = element->tag->type; | 1278 | token->type = element->tag->type; |
1279 | 1279 | ||
1280 | if ((element->tag->flags&SKIN_REFRESH_ALL) == SKIN_RTC_REFRESH) | 1280 | if (element->tag->flags&SKIN_RTC_REFRESH) |
1281 | { | 1281 | { |
1282 | #ifdef CONFIG_RTC | 1282 | #if CONFIG_RTC |
1283 | curr_line->update_mode |= SKIN_REFRESH_DYNAMIC; | 1283 | curr_line->update_mode |= SKIN_REFRESH_DYNAMIC; |
1284 | #else | 1284 | #else |
1285 | curr_line->update_mode |= SKIN_REFRESH_STATIC; | 1285 | curr_line->update_mode |= SKIN_REFRESH_STATIC; |
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index 89fa1a8708..0c18848645 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c | |||
@@ -455,6 +455,10 @@ static bool skin_render_line(struct skin_element* line, struct skin_draw_info *i | |||
455 | sizeof(tempbuf), NULL); | 455 | sizeof(tempbuf), NULL); |
456 | if (value) | 456 | if (value) |
457 | { | 457 | { |
458 | #if CONFIG_RTC | ||
459 | if (child->tag->flags&SKIN_RTC_REFRESH) | ||
460 | needs_update = needs_update || info->refresh_type&SKIN_REFRESH_DYNAMIC; | ||
461 | #endif | ||
458 | needs_update = needs_update || | 462 | needs_update = needs_update || |
459 | ((child->tag->flags&info->refresh_type)!=0); | 463 | ((child->tag->flags&info->refresh_type)!=0); |
460 | strlcat(info->cur_align_start, value, | 464 | strlcat(info->cur_align_start, value, |