[Scummvm-git-logs] scummvm master -> ca73d4352e82b3f47b0504e5334a813c9b2f46bc

AndywinXp noreply at scummvm.org
Sun Nov 19 17:57:21 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:
ca73d4352e SCUMM: MACGUI: Update engine mouse coordinates while in MacGui


Commit: ca73d4352e82b3f47b0504e5334a813c9b2f46bc
    https://github.com/scummvm/scummvm/commit/ca73d4352e82b3f47b0504e5334a813c9b2f46bc
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-11-19T18:57:14+01:00

Commit Message:
SCUMM: MACGUI: Update engine mouse coordinates while in MacGui

This fixes the mouse cursor being elsewhere when loading
a savestate from the MacGui.

Changed paths:
    engines/scumm/gfx_mac.cpp


diff --git a/engines/scumm/gfx_mac.cpp b/engines/scumm/gfx_mac.cpp
index 808cf2878f1..b3c1d40e578 100644
--- a/engines/scumm/gfx_mac.cpp
+++ b/engines/scumm/gfx_mac.cpp
@@ -1994,6 +1994,10 @@ int MacGui::MacDialogWindow::runDialog(Common::Array<int> &deferredActionIds) {
 
 				_mousePos.x = event.mouse.x;
 				_mousePos.y = event.mouse.y;
+
+				// Update engine mouse position
+				_gui->_vm->_mouse.x = _realMousePos.x / 2;
+				_gui->_vm->_mouse.y = _realMousePos.y / 2;
 			}
 
 			int w;




More information about the Scummvm-git-logs mailing list