Skip to content

Commit

Permalink
ZVISION: Fix onMouseMove rectangle for scriptManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Jan 12, 2014
1 parent e2dc6d3 commit 52bcd62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/zvision/events.cpp
Expand Up @@ -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:
//
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 52bcd62

Please sign in to comment.