[Scummvm-cvs-logs] scummvm master -> cfeda2888564111c7c8d9e178429c8b1080fdbf4

digitall dgturner at iee.org
Fri Apr 12 17:05:19 CEST 2013


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:
cfeda28885 MOHAWK: Prevent left mouse click handling if the cursor isn't visible.


Commit: cfeda2888564111c7c8d9e178429c8b1080fdbf4
    https://github.com/scummvm/scummvm/commit/cfeda2888564111c7c8d9e178429c8b1080fdbf4
Author: uruk (koppirnyo at gmail.com)
Date: 2013-04-12T07:57:40-07:00

Commit Message:
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".

Changed paths:
    engines/mohawk/livingbooks.cpp



diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index a0671d1..2b0a45d 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;
 






More information about the Scummvm-git-logs mailing list