diff options
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 4 |
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); |