From 43fc2a51d982c12b92b18ecba820b264212a3208 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 21 Feb 2012 00:17:49 +1100 Subject: [PATCH] skin engine: Make %vs() dynamic so it updated every screen update This makes it easier to use %?vl() (variable last changed) in a sensible manner. Change-Id: I0bf9ae24bc4516d2fd5691af236cc4439a0863c8 --- apps/gui/skin_engine/skin_render.c | 1 - lib/skin_parser/tag_table.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index 7b80d8c7a0..951d34a724 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c @@ -274,7 +274,6 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, #endif /* HAVE_LCD_BITMAP */ #ifdef HAVE_SKIN_VARIABLES case SKIN_TOKEN_VAR_SET: - if (do_refresh) { struct skin_var_changer *data = SKINOFFSETTOPTR(skin_buffer, token->value.data); struct skin_var *var = SKINOFFSETTOPTR(skin_buffer, data->var); diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c index bf65d0d970..1ddef71a24 100644 --- a/lib/skin_parser/tag_table.c +++ b/lib/skin_parser/tag_table.c @@ -236,7 +236,7 @@ static const struct tag_info legal_tags[] = { SKIN_TOKEN_REC_HOURS, "Rh" , "", SKIN_REFRESH_DYNAMIC }, /* Skin variables */ - { SKIN_TOKEN_VAR_SET, "vs", "SSI|I", SKIN_REFRESH_STATIC }, + { SKIN_TOKEN_VAR_SET, "vs", "SSI|I", SKIN_REFRESH_DYNAMIC }, { SKIN_TOKEN_VAR_GETVAL, "vg", "S", SKIN_REFRESH_DYNAMIC }, { SKIN_TOKEN_VAR_TIMEOUT, "vl", "S|D", SKIN_REFRESH_DYNAMIC },