diff options
Diffstat (limited to 'apps/menus/settings_menu.c')
-rw-r--r-- | apps/menus/settings_menu.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 56a0178000..fdc775877a 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c | |||
@@ -265,21 +265,6 @@ MENUITEM_SETTING(buttonlight_brightness, &global_settings.buttonlight_brightness | |||
265 | MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL); | 265 | MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL); |
266 | #endif | 266 | #endif |
267 | 267 | ||
268 | #ifdef HAVE_TOUCHSCREEN | ||
269 | static int touch_mode_callback(int action,const struct menu_item_ex *this_item) | ||
270 | { | ||
271 | (void)this_item; | ||
272 | switch (action) | ||
273 | { | ||
274 | case ACTION_EXIT_MENUITEM: /* on exit */ | ||
275 | touchscreen_set_mode(global_settings.touch_mode); | ||
276 | break; | ||
277 | } | ||
278 | return action; | ||
279 | } | ||
280 | MENUITEM_SETTING(touch_mode, &global_settings.touch_mode, touch_mode_callback); | ||
281 | #endif | ||
282 | |||
283 | MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), | 268 | MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), |
284 | 0, Icon_System_menu, | 269 | 0, Icon_System_menu, |
285 | &start_screen, | 270 | &start_screen, |
@@ -315,9 +300,6 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), | |||
315 | #ifdef HAVE_TOUCHPAD_SENSITIVITY_SETTING | 300 | #ifdef HAVE_TOUCHPAD_SENSITIVITY_SETTING |
316 | &touchpad_sensitivity, | 301 | &touchpad_sensitivity, |
317 | #endif | 302 | #endif |
318 | #ifdef HAVE_TOUCHSCREEN | ||
319 | &touch_mode, | ||
320 | #endif | ||
321 | ); | 303 | ); |
322 | 304 | ||
323 | /* SYSTEM MENU */ | 305 | /* SYSTEM MENU */ |