diff options
author | Paul Gilbert | 2015-06-03 19:10:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-03 19:10:33 -0400 |
commit | bc7127c52222fc98c36f6b33b534acdcb10027c8 (patch) | |
tree | c395c257c4a723e15ed49219be482016bd702469 /engines | |
parent | dce570c7e99bf1938d15cf74bc0945819099a8db (diff) | |
download | scummvm-rg350-bc7127c52222fc98c36f6b33b534acdcb10027c8.tar.gz scummvm-rg350-bc7127c52222fc98c36f6b33b534acdcb10027c8.tar.bz2 scummvm-rg350-bc7127c52222fc98c36f6b33b534acdcb10027c8.zip |
SHERLOCK: Fix resetting cursor when leaving the map
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/events.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp index ec6863c2a8..afd3602758 100644 --- a/engines/sherlock/events.cpp +++ b/engines/sherlock/events.cpp @@ -62,8 +62,6 @@ void Events::setCursor(CursorId cursorId) { if (cursorId == _cursorId) return; - _cursorId = cursorId; - int hotspotX, hotspotY; if (cursorId == MAGNIFY) { @@ -78,9 +76,12 @@ void Events::setCursor(CursorId cursorId) { Graphics::Surface &s = (*_cursorImages)[cursorId]._frame; setCursor(s, hotspotX, hotspotY); + + _cursorId = cursorId; } void Events::setCursor(const Graphics::Surface &src, int hotspotX, int hotspotY) { + _cursorId = INVALID_CURSOR; CursorMan.replaceCursor(src.getPixels(), src.w, src.h, hotspotX, hotspotY, 0xff); showCursor(); } |