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
This commit is contained in:
parent
f011154728
commit
48b7e8ca27
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue