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
This commit is contained in:
parent
8997321777
commit
642736f53b
1 changed files with 5 additions and 2 deletions
|
@ -1140,6 +1140,7 @@ static const struct touchaction touchactions[] = {
|
||||||
static int touchregion_setup_setting(struct skin_element *element, int param_no,
|
static int touchregion_setup_setting(struct skin_element *element, int param_no,
|
||||||
struct touchregion *region)
|
struct touchregion *region)
|
||||||
{
|
{
|
||||||
|
#ifndef __PCTOOL__
|
||||||
int p = param_no;
|
int p = param_no;
|
||||||
char *name = element->params[p++].data.text;
|
char *name = element->params[p++].data.text;
|
||||||
int j;
|
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);
|
region->setting_data.setting = find_setting_by_cfgname(name, &j);
|
||||||
if (region->setting_data.setting == NULL)
|
if (region->setting_data.setting == NULL)
|
||||||
return WPS_ERROR_INVALID_PARAM;
|
return WPS_ERROR_INVALID_PARAM;
|
||||||
|
|
||||||
if (region->action == ACTION_SETTINGS_SET)
|
if (region->action == ACTION_SETTINGS_SET)
|
||||||
{
|
{
|
||||||
char* text;
|
char* text;
|
||||||
|
@ -1155,7 +1157,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no,
|
||||||
®ion->setting_data;
|
®ion->setting_data;
|
||||||
if (element->params_count < p+1)
|
if (element->params_count < p+1)
|
||||||
return -1;
|
return -1;
|
||||||
#ifndef __PCTOOL__
|
|
||||||
text = element->params[p++].data.text;
|
text = element->params[p++].data.text;
|
||||||
switch (settings[j].flags&F_T_MASK)
|
switch (settings[j].flags&F_T_MASK)
|
||||||
{
|
{
|
||||||
|
@ -1190,9 +1192,10 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no,
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /* __PCTOOL__ */
|
|
||||||
}
|
}
|
||||||
return p-param_no;
|
return p-param_no;
|
||||||
|
#endif /* __PCTOOL__ */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parse_touchregion(struct skin_element *element,
|
static int parse_touchregion(struct skin_element *element,
|
||||||
|
|
Loading…
Reference in a new issue