From 52bcd6224813410aab3935a3f02de07b60abefe5 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Sun, 12 Jan 2014 19:20:49 +0700 Subject: [PATCH] ZVISION: Fix onMouseMove rectangle for scriptManager. --- engines/zvision/events.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/zvision/events.cpp b/engines/zvision/events.cpp index d8828867b092..34b72e81d060 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) {