summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c
index 43914699d6..7d0f42259b 100644
--- a/apps/gui/skin_engine/skin_render.c
+++ b/apps/gui/skin_engine/skin_render.c
@@ -105,7 +105,6 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
105#ifdef HAVE_LCD_BITMAP 105#ifdef HAVE_LCD_BITMAP
106 struct wps_data *data = gwps->data; 106 struct wps_data *data = gwps->data;
107 bool do_refresh = (element->tag->flags & info->refresh_type) > 0; 107 bool do_refresh = (element->tag->flags & info->refresh_type) > 0;
108 struct line_desc *linedes = &info->line_desc;
109#endif 108#endif
110 switch (token->type) 109 switch (token->type)
111 { 110 {
@@ -132,6 +131,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
132 * come before the text style tag color fields need to be preserved */ 131 * come before the text style tag color fields need to be preserved */
133 if (data->style & STYLE_GRADIENT) 132 if (data->style & STYLE_GRADIENT)
134 { 133 {
134 struct line_desc *linedes = &info->line_desc;
135 fb_data tc = linedes->text_color, 135 fb_data tc = linedes->text_color,
136 lc = linedes->line_color, 136 lc = linedes->line_color,
137 lec = linedes->line_end_color; 137 lec = linedes->line_end_color;
@@ -149,6 +149,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
149 case SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP: 149 case SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP:
150 { 150 {
151 struct gradient_config *cfg = SKINOFFSETTOPTR(skin_buffer, token->value.data); 151 struct gradient_config *cfg = SKINOFFSETTOPTR(skin_buffer, token->value.data);
152 struct line_desc *linedes = &info->line_desc;
152 linedes->text_color = cfg->text; 153 linedes->text_color = cfg->text;
153 linedes->line_color = cfg->start; 154 linedes->line_color = cfg->start;
154 linedes->line_end_color = cfg->end; 155 linedes->line_end_color = cfg->end;