aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authoruruk2013-04-12 12:28:05 +0200
committerD G Turner2013-04-12 15:57:40 +0100
commitcfeda2888564111c7c8d9e178429c8b1080fdbf4 (patch)
treef5762730e47652f1f1992177d5470ed185a5173d /engines/mohawk
parent687e47d332e24e4579c8ff4bab4858a66cbf8ab6 (diff)
downloadscummvm-rg350-cfeda2888564111c7c8d9e178429c8b1080fdbf4.tar.gz
scummvm-rg350-cfeda2888564111c7c8d9e178429c8b1080fdbf4.tar.bz2
scummvm-rg350-cfeda2888564111c7c8d9e178429c8b1080fdbf4.zip
MOHAWK: Prevent left mouse click handling if the cursor isn't visible.
This fixes bug #3488327 - "LB: Mouse events processed when they shouldn't be".
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index a0671d18d5..2b0a45d4e6 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -40,6 +40,8 @@
#include "gui/message.h"
+#include "graphics/cursorman.h"
+
namespace Mohawk {
// read a null-terminated string from a stream
@@ -223,7 +225,7 @@ Common::Error MohawkEngine_LivingBooks::run() {
}
}
- if (found)
+ if (found && CursorMan.isVisible())
found->handleMouseDown(event.mouse);
break;