From 48b7e8ca2748afbf429dc691a37cb3f6f1252246 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 3 Aug 2009 03:01:04 +0000 Subject: [PATCH] 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 --- apps/plugins/reversi/reversi-gui.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }