summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-09-15 06:51:47 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-09-15 06:51:47 +0000
commit454272cabfadeed04822525347800997ba71192b (patch)
tree2084e65ac7b7a7167601e7edcbf2652973a74616 /apps
parente995d015700bc0d0bcbbe4d5cb3651cc4f4d0efb (diff)
skin-touchscreen: make %T(..., setting_set, ...) apply sound settings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30551 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_touchsupport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c
index d4f4fe226b..64c797942c 100644
--- a/apps/gui/skin_engine/skin_touchsupport.c
+++ b/apps/gui/skin_engine/skin_touchsupport.c
@@ -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;