aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-01-12 19:20:49 +0700
committerMarisa-Chan2014-01-12 19:20:49 +0700
commit52bcd6224813410aab3935a3f02de07b60abefe5 (patch)
treef0e0e048c20a419a21065ea698a626d30462c556 /engines
parente2dc6d31d27760bae85b1e00eba32011a07da178 (diff)
downloadscummvm-rg350-52bcd6224813410aab3935a3f02de07b60abefe5.tar.gz
scummvm-rg350-52bcd6224813410aab3935a3f02de07b60abefe5.tar.bz2
scummvm-rg350-52bcd6224813410aab3935a3f02de07b60abefe5.zip
ZVISION: Fix onMouseMove rectangle for scriptManager.
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/events.cpp b/engines/zvision/events.cpp
index d8828867b0..34b72e81d0 100644
--- a/engines/zvision/events.cpp
+++ b/engines/zvision/events.cpp
@@ -110,7 +110,7 @@ void ZVision::onMouseUp(const Common::Point &pos) {
void ZVision::onMouseMove(const Common::Point &pos) {
Common::Point imageCoord(_renderManager->screenSpaceToImageSpace(pos));
- bool cursorWasChanged = _scriptManager->onMouseMove(pos, imageCoord);
+ bool cursorWasChanged = false;
// Graph of the function governing rotation velocity:
//
@@ -143,6 +143,8 @@ void ZVision::onMouseMove(const Common::Point &pos) {
// ^
if (_workingWindow.contains(pos)) {
+ cursorWasChanged = _scriptManager->onMouseMove(pos, imageCoord);
+
RenderTable::RenderState renderState = _renderManager->getRenderTable()->getRenderState();
if (renderState == RenderTable::PANORAMA) {
if (pos.x >= _workingWindow.left && pos.x < _workingWindow.left + ROTATION_SCREEN_EDGE_OFFSET) {