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

criezy noreply at scummvm.org
Fri Aug 29 21:41:50 UTC 2025


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

Summary:
ecc62b0d21 HUGO: Fix top menu not closing when it should


Commit: ecc62b0d215a044496795c35328bafcda733804d
    https://github.com/scummvm/scummvm/commit/ecc62b0d215a044496795c35328bafcda733804d
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2025-08-29T22:41:46+01:00

Commit Message:
HUGO: Fix top menu not closing when it should

This fixes bug #12621.

Changed paths:
    engines/hugo/mouse.cpp


diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp
index 8a0717f8d67..0730c62882b 100644
--- a/engines/hugo/mouse.cpp
+++ b/engines/hugo/mouse.cpp
@@ -325,6 +325,10 @@ void MouseHandler::mouseHandler() {
 	} else {
 		if (cy < 5 && cy > 0) {
 			_vm->_topMenu->runModal();
+			// When the top menu is shown, it eats all the events, including mouse move, which means the
+			// getMouseX() and getMouseY() have not been updated and the topMenu will be shown immediately
+			// again. We do not know where the cursor is currently, but move it outside of the ]0, 5[ range.
+			setMouseY(0);
 		}
 	}
 




More information about the Scummvm-git-logs mailing list