From: Holger Schemel Date: Sun, 22 May 2022 11:35:15 +0000 (+0200) Subject: fixed another problem with leaving scores screen on Android platform X-Git-Tag: 4.3.2.2~21 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=6ca233d4d71331460af0443bf5b307f16c6fe069 fixed another problem with leaving scores screen on Android platform On Android, when touching the screen anywhere in the hall of fame after playing a game, this should either start the next game or return to the main menu. However, this is done when touching the screen with "finger down", not with "finger up again", sending an additional "release" event in the main menu, triggering the menu entry under the finger. This fix triggers leaving the hall of fame on the "release" event only. --- diff --git a/src/screens.c b/src/screens.c index 98cb6ba9..ee5035ce 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4816,8 +4816,8 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button, // directly continue when touching the screen after playing if ((mx || my) && scores.continue_on_return) { + // ignore touch events until released mx = my = 0; - button = MB_MENU_CHOICE; } #endif