[Scummvm-git-logs] scummvm branch-2-5 -> 3a3f58cbae08f4cc9af35724204f72f4405a3f92
eriktorbjorn
noreply at scummvm.org
Tue Dec 14 11:43:02 UTC 2021
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:
3a3f58cbae SHERLOCK: Clear events after Scalpel window sliding animation
Commit: 3a3f58cbae08f4cc9af35724204f72f4405a3f92
https://github.com/scummvm/scummvm/commit/3a3f58cbae08f4cc9af35724204f72f4405a3f92
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-12-14T12:42:47+01:00
Commit Message:
SHERLOCK: Clear events after Scalpel window sliding animation
Before, the game would sometimes register the mouse release event right
as the mouse pointer passed over the Exit button, causing e.g the
conversation window to close right away. This was probably also what
caused it to sometimes select conversation topics seemingly at random
for me.
Changed paths:
engines/sherlock/scalpel/scalpel_user_interface.cpp
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp
index e4f3388e26..837c7fa184 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.cpp
+++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp
@@ -2106,6 +2106,8 @@ void ScalpelUserInterface::summonWindow(const Surface &bgSurface, bool slideUp)
}
}
+ events.clearEvents();
+
// Final display of the entire window
screen.getBackBuffer()->SHblitFrom(bgSurface, Common::Point(0, SHERLOCK_SCREEN_HEIGHT - bgSurface.height()),
Common::Rect(0, 0, bgSurface.width(), bgSurface.height()));
@@ -2189,6 +2191,8 @@ void ScalpelUserInterface::banishWindow(bool slideUp) {
screen.slamRect(Common::Rect(0, CONTROLS_Y1, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT));
}
+ events.clearEvents();
+
_infoFlag = false;
_windowOpen = false;
}
More information about the Scummvm-git-logs
mailing list