summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-07 22:41:00 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-07 22:41:00 +0100
commit0e6d86e4feb800148c589faa6da4f08c41059c5d (patch)
tree0290acc14bf1a17138f20b87ae474b3990f02c97 /apps/gui/skin_engine
parentd146970ca1e5c9b0641301d50823d29b2e25c9e4 (diff)
Fix a few reds and yellows.
Change-Id: I9ad2aca494f2ea3ca5453082ec5491ec031f9ae5
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,
#ifdef HAVE_LCD_BITMAP
struct wps_data *data = gwps->data;
bool do_refresh = (element->tag->flags & info->refresh_type) > 0;
- struct line_desc *linedes = &info->line_desc;
#endif
switch (token->type)
{
@@ -132,6 +131,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
* come before the text style tag color fields need to be preserved */
if (data->style & STYLE_GRADIENT)
{
+ struct line_desc *linedes = &info->line_desc;
fb_data tc = linedes->text_color,
lc = linedes->line_color,
lec = linedes->line_end_color;
@@ -149,6 +149,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
case SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP:
{
struct gradient_config *cfg = SKINOFFSETTOPTR(skin_buffer, token->value.data);
+ struct line_desc *linedes = &info->line_desc;
linedes->text_color = cfg->text;
linedes->line_color = cfg->start;
linedes->line_end_color = cfg->end;