summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-08-14 13:56:10 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-08-14 13:56:10 +0000
commit4ed1340a7c8bb4a04edee69645eda0bf35cb35dd (patch)
tree5bebab018fe234f3ff302839842030d994b03522 /apps/gui/skin_engine
parent281f1a1ed6f6213139fbc230dc819bbcbe3ee40a (diff)
Fix player errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30303 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index b7bb045411..59c7e92d90 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -482,6 +482,8 @@ static int parse_viewport_gradient_setup(struct skin_element *element,
return 0;
}
#endif
+
+#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1))
static int parse_viewporttextstyle(struct skin_element *element,
struct wps_token *token,
struct wps_data *wps_data)
@@ -525,8 +527,6 @@ static int parse_viewporttextstyle(struct skin_element *element,
return 0;
}
-#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1))
-
static int parse_viewportcolour(struct skin_element *element,
struct wps_token *token,
struct wps_data *wps_data)
@@ -1759,10 +1759,10 @@ static int skin_element_callback(struct skin_element* element, void* data)
case SKIN_TOKEN_IMAGE_BACKDROP:
function = parse_image_special;
break;
-#endif
case SKIN_TOKEN_VIEWPORT_TEXTSTYLE:
function = parse_viewporttextstyle;
break;
+#endif
#ifdef HAVE_LCD_COLOR
case SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP:
function = parse_viewport_gradient_setup;