summaryrefslogtreecommitdiffstats
path: root/apps/plugins/reversi/reversi-gui.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-03 03:01:04 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-03 03:01:04 +0000
commit48b7e8ca2748afbf429dc691a37cb3f6f1252246 (patch)
tree2954b5e704f60258e6630f68b5e395587cc383a8 /apps/plugins/reversi/reversi-gui.c
parentf01115472814d79458cc165e85479124ad444826 (diff)
downloadrockbox-48b7e8ca2748afbf429dc691a37cb3f6f1252246.tar.gz
rockbox-48b7e8ca2748afbf429dc691a37cb3f6f1252246.tar.bz2
rockbox-48b7e8ca2748afbf429dc691a37cb3f6f1252246.zip
Reversi: Make Reversi respect the global touchscreen setting when in a menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22134 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/reversi/reversi-gui.c')
-rw-r--r--apps/plugins/reversi/reversi-gui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c
index 1d8b9c1fed..630ea5a0e1 100644
--- a/apps/plugins/reversi/reversi-gui.c
+++ b/apps/plugins/reversi/reversi-gui.c
@@ -432,6 +432,11 @@ static bool reversi_gui_menu(void) {
MENU_TEXT_STRAT_BLACK, MENU_TEXT_STRAT_WHITE,
MENU_TEXT_WRAP_MODE, "Playback Control", "Quit");
+#ifdef HAVE_TOUCHSCREEN
+ /* Entering Menu, set the touchscreen to the global setting */
+ rb->touchscreen_set_mode(rb->global_settings->touch_mode);
+#endif
+
result = rb->do_menu(&menu, NULL, NULL, false);
switch (result) {
@@ -475,6 +480,11 @@ static bool reversi_gui_menu(void) {
break;
}
+#ifdef HAVE_TOUCHSCREEN
+ /* Leaving the menu, set back to pointer mode */
+ rb->touchscreen_set_mode(TOUCHSCREEN_POINT);
+#endif
+
return (result == MENU_ATTACHED_USB);
}