From 0aa0ae6c69c883999a935a63d8d8c1efd7708e28 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 22 Feb 2021 02:38:21 +0100 Subject: [PATCH] fix #1010 --- src/frontend/qt_sdl/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index a11d16d3..fa293cf0 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -730,9 +730,7 @@ void ScreenHandler::screenOnMousePress(QMouseEvent* event) int x = event->pos().x(); int y = event->pos().y(); - Frontend::GetTouchCoords(x, y); - - if (x >= 0 && x < 256 && y >= 0 && y < 192) + if (Frontend::GetTouchCoords(x, y)) { touching = true; NDS::TouchScreen(x, y);