diff options
Diffstat (limited to 'backends/platform/iphone/osys_events.cpp')
-rw-r--r-- | backends/platform/iphone/osys_events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/iphone/osys_events.cpp b/backends/platform/iphone/osys_events.cpp index f1e3b9ba62..22f529dfac 100644 --- a/backends/platform/iphone/osys_events.cpp +++ b/backends/platform/iphone/osys_events.cpp @@ -74,7 +74,7 @@ bool OSystem_IPHONE::pollEvent(Common::Event &event) { y = (int)((1.0 - xUnit) * _overlayHeight); } else { x = (int)(yUnit * _screenWidth); - y = (int)((1.0 - xUnit) * _screenHeight); + y = (int)((1.0 - xUnit) * _screenHeight); } break; case kScreenOrientationFlippedLandscape: @@ -279,7 +279,7 @@ bool OSystem_IPHONE::handleEvent_mouseDragged(Common::Event &event, int x, int y int widthCap = _overlayVisible ? _overlayWidth : _screenWidth; int heightCap = _overlayVisible ? _overlayHeight : _screenHeight; - + if (mouseNewPosX < 0) mouseNewPosX = 0; else if (mouseNewPosX > widthCap) |