aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-16 20:31:58 -0400
committerPaul Gilbert2015-07-16 20:31:58 -0400
commitd31884e8a16189efcda9e853f10e79c1e03a6337 (patch)
tree80956ba96b460133b36d6d1934aceeef8d5eca5f
parent476d127de4be012a3e8f86bf1cca961e2d268b4a (diff)
downloadscummvm-rg350-d31884e8a16189efcda9e853f10e79c1e03a6337.tar.gz
scummvm-rg350-d31884e8a16189efcda9e853f10e79c1e03a6337.tar.bz2
scummvm-rg350-d31884e8a16189efcda9e853f10e79c1e03a6337.zip
SHERLOCK: RT: Fix closing talk window by clicking outside it
-rw-r--r--engines/sherlock/tattoo/widget_talk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index f51c68b54f..b563ee8ac3 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -296,11 +296,12 @@ void WidgetTalk::handleEvents() {
}
if (events._released || events._rightReleased || keycode == Common::KEYCODE_ESCAPE || hotkey) {
+ events.clearEvents();
_dialogTimer = 0;
ui._scrollHighlight = SH_NONE;
// See if they want to close the menu (click outside the window or Escape pressed)
- if ((_outsideMenu && _bounds.contains(mousePos)) || keycode == Common::KEYCODE_ESCAPE) {
+ if ((_outsideMenu && !_bounds.contains(mousePos)) || keycode == Common::KEYCODE_ESCAPE) {
if (keycode == Common::KEYCODE_ESCAPE)
_selector = -1;