aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-02-22 02:38:21 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2021-02-22 02:38:21 +0100
commit0aa0ae6c69c883999a935a63d8d8c1efd7708e28 (patch)
treecfe996186acc8a35811b56d55be9f092261394bf /src
parent03b465c5e2f099c12d0816e89e008c98ccbffd8a (diff)
fix #1010
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index a11d16d..fa293cf 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);