skin-touchscreen: make %T(..., setting_set, ...) apply sound settings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30551 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2011-09-15 06:51:47 +00:00
parent e995d01570
commit 454272cabf

View file

@ -219,7 +219,9 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset,
case F_T_INT:
case F_T_UINT:
*(int*)s->setting = data->value.number;
if (s->flags&F_CHOICE_SETTING)
if ((s->flags & F_T_SOUND) == F_T_SOUND)
sound_set(s->sound_setting->setting, data->value.number);
else if (s->flags&F_CHOICE_SETTING)
f = s->choice_setting->option_callback;
else if (s->flags&F_TABLE_SETTING)
f = s->table_setting->option_callback;