summaryrefslogtreecommitdiff
path: root/apps/radio
diff options
context:
space:
mode:
Diffstat (limited to 'apps/radio')
-rw-r--r--apps/radio/radio_skin.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/radio/radio_skin.c b/apps/radio/radio_skin.c
index 26e6daccbc..28bd784ad4 100644
--- a/apps/radio/radio_skin.c
+++ b/apps/radio/radio_skin.c
@@ -30,6 +30,7 @@
30#include "action.h" 30#include "action.h"
31#include "appevents.h" 31#include "appevents.h"
32#include "statusbar-skinned.h" 32#include "statusbar-skinned.h"
33#include "option_select.h"
33 34
34 35
35extern struct wps_state wps_state; /* from wps.c */ 36extern struct wps_state wps_state; /* from wps.c */
@@ -116,9 +117,10 @@ int fms_do_button_loop(bool update_screen)
116 int button = skin_wait_for_action(fms_skin, CONTEXT_FM, 117 int button = skin_wait_for_action(fms_skin, CONTEXT_FM,
117 update_screen ? TIMEOUT_NOBLOCK : HZ/5); 118 update_screen ? TIMEOUT_NOBLOCK : HZ/5);
118#ifdef HAVE_TOUCHSCREEN 119#ifdef HAVE_TOUCHSCREEN
120 struct touchregion *region;
119 int offset; 121 int offset;
120 if (button == ACTION_TOUCHSCREEN) 122 if (button == ACTION_TOUCHSCREEN)
121 button = skin_get_touchaction(&fms_skin_data[SCREEN_MAIN], &offset); 123 button = skin_get_touchaction(&fms_skin_data[SCREEN_MAIN], &offset, &region);
122 switch (button) 124 switch (button)
123 { 125 {
124 case ACTION_WPS_STOP: 126 case ACTION_WPS_STOP:
@@ -136,6 +138,13 @@ int fms_do_button_loop(bool update_screen)
136 case WPS_TOUCHREGION_SCROLLBAR: 138 case WPS_TOUCHREGION_SCROLLBAR:
137 /* TODO */ 139 /* TODO */
138 break; 140 break;
141 case ACTION_SETTINGS_INC:
142 case ACTION_SETTINGS_DEC:
143 {
144 const struct settings_list *setting = region->extradata;
145 option_select_next_val(setting, button == ACTION_SETTINGS_DEC, true);
146 }
147 return ACTION_REDRAW;
139 } 148 }
140#endif 149#endif
141 return button; 150 return button;