From 642736f53b153f544dc60bb5d7ff4f147ec760b4 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 4 Sep 2011 13:23:40 +0000 Subject: fix error, none of this code is needed or would work in the checkwps program anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30429 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/gui/skin_engine') diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index adac487e27..58ac5f552c 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -1140,6 +1140,7 @@ static const struct touchaction touchactions[] = { static int touchregion_setup_setting(struct skin_element *element, int param_no, struct touchregion *region) { +#ifndef __PCTOOL__ int p = param_no; char *name = element->params[p++].data.text; int j; @@ -1147,6 +1148,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, region->setting_data.setting = find_setting_by_cfgname(name, &j); if (region->setting_data.setting == NULL) return WPS_ERROR_INVALID_PARAM; + if (region->action == ACTION_SETTINGS_SET) { char* text; @@ -1155,7 +1157,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, ®ion->setting_data; if (element->params_count < p+1) return -1; -#ifndef __PCTOOL__ + text = element->params[p++].data.text; switch (settings[j].flags&F_T_MASK) { @@ -1190,9 +1192,10 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, default: return -1; } -#endif /* __PCTOOL__ */ } return p-param_no; +#endif /* __PCTOOL__ */ + return 0; } static int parse_touchregion(struct skin_element *element, -- cgit v1.2.3