diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 7 |
1 files changed, 5 insertions, 2 deletions
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[] = { | |||
1140 | static int touchregion_setup_setting(struct skin_element *element, int param_no, | 1140 | static int touchregion_setup_setting(struct skin_element *element, int param_no, |
1141 | struct touchregion *region) | 1141 | struct touchregion *region) |
1142 | { | 1142 | { |
1143 | #ifndef __PCTOOL__ | ||
1143 | int p = param_no; | 1144 | int p = param_no; |
1144 | char *name = element->params[p++].data.text; | 1145 | char *name = element->params[p++].data.text; |
1145 | int j; | 1146 | int j; |
@@ -1147,6 +1148,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, | |||
1147 | region->setting_data.setting = find_setting_by_cfgname(name, &j); | 1148 | region->setting_data.setting = find_setting_by_cfgname(name, &j); |
1148 | if (region->setting_data.setting == NULL) | 1149 | if (region->setting_data.setting == NULL) |
1149 | return WPS_ERROR_INVALID_PARAM; | 1150 | return WPS_ERROR_INVALID_PARAM; |
1151 | |||
1150 | if (region->action == ACTION_SETTINGS_SET) | 1152 | if (region->action == ACTION_SETTINGS_SET) |
1151 | { | 1153 | { |
1152 | char* text; | 1154 | char* text; |
@@ -1155,7 +1157,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, | |||
1155 | ®ion->setting_data; | 1157 | ®ion->setting_data; |
1156 | if (element->params_count < p+1) | 1158 | if (element->params_count < p+1) |
1157 | return -1; | 1159 | return -1; |
1158 | #ifndef __PCTOOL__ | 1160 | |
1159 | text = element->params[p++].data.text; | 1161 | text = element->params[p++].data.text; |
1160 | switch (settings[j].flags&F_T_MASK) | 1162 | switch (settings[j].flags&F_T_MASK) |
1161 | { | 1163 | { |
@@ -1190,9 +1192,10 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no, | |||
1190 | default: | 1192 | default: |
1191 | return -1; | 1193 | return -1; |
1192 | } | 1194 | } |
1193 | #endif /* __PCTOOL__ */ | ||
1194 | } | 1195 | } |
1195 | return p-param_no; | 1196 | return p-param_no; |
1197 | #endif /* __PCTOOL__ */ | ||
1198 | return 0; | ||
1196 | } | 1199 | } |
1197 | 1200 | ||
1198 | static int parse_touchregion(struct skin_element *element, | 1201 | static int parse_touchregion(struct skin_element *element, |