summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-03-01 07:26:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-03-01 07:26:11 +0000
commitfb3616368f5e9994716e30a040865f3cf398aa21 (patch)
treea5b6f171e058539394ecab91c45211341d21165b /apps/gui/statusbar-skinned.c
parent55fab772b7399737e9c22737f91cd3e74c793872 (diff)
downloadrockbox-fb3616368f5e9994716e30a040865f3cf398aa21.tar.gz
rockbox-fb3616368f5e9994716e30a040865f3cf398aa21.tar.bz2
rockbox-fb3616368f5e9994716e30a040865f3cf398aa21.zip
Remove code duplication in some generic skin touch action handling.
fix a bug which stopped the setting_inc/dec touch actions from parsing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29477 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index 29e8d1a92a..887b0844d7 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -295,26 +295,6 @@ int sb_touch_to_button(int context)
case ACTION_WPS_VOLDOWN:
return ACTION_LIST_VOLDOWN;
#endif
- case ACTION_SETTINGS_INC:
- case ACTION_SETTINGS_DEC:
- {
- const struct settings_list *setting = region->data;
- option_select_next_val(setting, button == ACTION_SETTINGS_DEC, true);
- }
- return ACTION_REDRAW;
- case ACTION_TOUCH_MUTE:
- {
- const int min_vol = sound_min(SOUND_VOLUME);
- if (global_settings.volume == min_vol)
- global_settings.volume = region->value;
- else
- {
- region->value = global_settings.volume;
- global_settings.volume = min_vol;
- }
- setvol();
- }
- return ACTION_REDRAW;
/* TODO */
}
return button;