[Scummvm-git-logs] scummvm master -> 0d585896edce36015721c75c41a9ad34467f7c80

neuromancer noreply at scummvm.org
Wed Jul 19 10:31:00 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0d585896ed FREESCAPE: correct computation of mouse position when clicking onscreen controls


Commit: 0d585896edce36015721c75c41a9ad34467f7c80
    https://github.com/scummvm/scummvm/commit/0d585896edce36015721c75c41a9ad34467f7c80
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-07-19T12:12:06+02:00

Commit Message:
FREESCAPE: correct computation of mouse position when clicking onscreen controls

Changed paths:
    engines/freescape/freescape.cpp


diff --git a/engines/freescape/freescape.cpp b/engines/freescape/freescape.cpp
index c4032a618eb..2ae013a8882 100644
--- a/engines/freescape/freescape.cpp
+++ b/engines/freescape/freescape.cpp
@@ -484,7 +484,7 @@ void FreescapeEngine::processInput() {
 			{
 				bool touchedScreenControls = false;
 
-				Common::Point resolution = _gfx->nativeResolution();
+				Common::Point resolution(g_system->getWidth(), g_system->getHeight());
 				mousePos.x = _screenW * mousePos.x / resolution.x;
 				mousePos.y = _screenH * mousePos.y / resolution.y;
 				touchedScreenControls = onScreenControls(mousePos);




More information about the Scummvm-git-logs mailing list