summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio_skin.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/radio/radio_skin.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/radio/radio_skin.c')
-rw-r--r--apps/radio/radio_skin.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/radio/radio_skin.c b/apps/radio/radio_skin.c
index 2e329230f7..c21d4a1046 100644
--- a/apps/radio/radio_skin.c
+++ b/apps/radio/radio_skin.c
@@ -121,26 +121,6 @@ int fms_do_button_loop(bool update_screen)
case WPS_TOUCHREGION_SCROLLBAR:
/* TODO */
break;
- 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;
}
#endif
return button;