diff options
author | Paul Gilbert | 2014-08-16 16:04:09 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-16 16:04:09 -0400 |
commit | bca9f14719dda5185c443cae6c16b6a374f50ab2 (patch) | |
tree | f0cfc5e7a8be9e72aa0d449d7430e6f7998cb383 /engines/access/events.cpp | |
parent | fa099b848094388225b4f7e84ad4a15d7c42ce34 (diff) | |
download | scummvm-rg350-bca9f14719dda5185c443cae6c16b6a374f50ab2.tar.gz scummvm-rg350-bca9f14719dda5185c443cae6c16b6a374f50ab2.tar.bz2 scummvm-rg350-bca9f14719dda5185c443cae6c16b6a374f50ab2.zip |
ACCESS: Fix display of mouse cursor
Diffstat (limited to 'engines/access/events.cpp')
-rw-r--r-- | engines/access/events.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/access/events.cpp b/engines/access/events.cpp index 8f02d41547..9c6b45737d 100644 --- a/engines/access/events.cpp +++ b/engines/access/events.cpp @@ -36,12 +36,12 @@ namespace Access { EventsManager::EventsManager(AccessEngine *vm): _vm(vm) { _cursorId = CURSOR_NONE; + _normalMouse = CURSOR_CROSSHAIRS; _frameCounter = 10; _priorFrameTime = 0; _leftButton = _rightButton = false; _mouseMove = false; _mouseCol = _mouseRow = 0; - _normalMouse = 0; _mouseMode = 0; _cursorExitFlag = false; } @@ -54,6 +54,11 @@ void EventsManager::setCursor(CursorType cursorId) { return; _cursorId = cursorId; + if (_mouseMode == 1 && cursorId == CURSOR_ARROW) + _mouseMode = 2; + else if (_mouseMode == 2 && cursorId != CURSOR_ARROW) + _mouseMode = 1; + // Get a pointer to the mouse data to use, and get the cursor hotspot const byte *srcP = Amazon::CURSORS[cursorId]; int hotspotX = (int16)READ_LE_UINT16(srcP); |