forked from len0rd/rockbox
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
This commit is contained in:
parent
eda80390d5
commit
e8bbbdffd4
2 changed files with 6 additions and 2 deletions
|
@ -1277,9 +1277,9 @@ static int skin_element_callback(struct skin_element* element, void* data)
|
|||
memset(token, 0, sizeof(*token));
|
||||
token->type = element->tag->type;
|
||||
|
||||
if ((element->tag->flags&SKIN_REFRESH_ALL) == SKIN_RTC_REFRESH)
|
||||
if (element->tag->flags&SKIN_RTC_REFRESH)
|
||||
{
|
||||
#ifdef CONFIG_RTC
|
||||
#if CONFIG_RTC
|
||||
curr_line->update_mode |= SKIN_REFRESH_DYNAMIC;
|
||||
#else
|
||||
curr_line->update_mode |= SKIN_REFRESH_STATIC;
|
||||
|
|
|
@ -455,6 +455,10 @@ static bool skin_render_line(struct skin_element* line, struct skin_draw_info *i
|
|||
sizeof(tempbuf), NULL);
|
||||
if (value)
|
||||
{
|
||||
#if CONFIG_RTC
|
||||
if (child->tag->flags&SKIN_RTC_REFRESH)
|
||||
needs_update = needs_update || info->refresh_type&SKIN_REFRESH_DYNAMIC;
|
||||
#endif
|
||||
needs_update = needs_update ||
|
||||
((child->tag->flags&info->refresh_type)!=0);
|
||||
strlcat(info->cur_align_start, value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue