summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio_skin.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-04 12:00:18 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-04 12:00:18 +0000
commitf0611f878101caa323b3b0693c0cf7170f59fe00 (patch)
treea49fa2bbc82d99c21d52c6db4d0991797228e50c /apps/radio/radio_skin.c
parent49865b23f601e636c9a80b21826fc607f1964eb5 (diff)
downloadrockbox-f0611f878101caa323b3b0693c0cf7170f59fe00.tar.gz
rockbox-f0611f878101caa323b3b0693c0cf7170f59fe00.tar.bz2
rockbox-f0611f878101caa323b3b0693c0cf7170f59fe00.zip
Force touchscreen targets into 3x3 grid mode when entering the wps/radio if the skin hasnt set any regions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27692 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/radio/radio_skin.c')
-rw-r--r--apps/radio/radio_skin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/radio/radio_skin.c b/apps/radio/radio_skin.c
index c7994b3135..6bc6c377d4 100644
--- a/apps/radio/radio_skin.c
+++ b/apps/radio/radio_skin.c
@@ -85,6 +85,11 @@ void fms_fix_displays(enum fms_exiting toggle_state)
viewportmanager_theme_undo(i, skin_has_sbs(i, fms_skin[i].data));
}
}
+#ifdef HAVE_TOUCHSCREEN
+ if (!fms_skin[SCREEN_MAIN].data->touchregions)
+ touchscreen_set_mode(toggle_state == FMS_ENTER ?
+ TOUCHSCREEN_BUTTON : global_settings.touch_mode);
+#endif
}