diff options
| author | richiesams | 2013-08-14 10:17:24 -0500 |
|---|---|---|
| committer | richiesams | 2013-08-14 10:17:24 -0500 |
| commit | c020c6bf539d2a9fc4f91a422e1f63d9d9f374b3 (patch) | |
| tree | e5851881bb364d725b9f5cbb8c70ebafa8ff6ec6 | |
| parent | 878fde365ea74e52ec1539f87fee53ed6c8c4279 (diff) | |
| download | scummvm-rg350-c020c6bf539d2a9fc4f91a422e1f63d9d9f374b3.tar.gz scummvm-rg350-c020c6bf539d2a9fc4f91a422e1f63d9d9f374b3.tar.bz2 scummvm-rg350-c020c6bf539d2a9fc4f91a422e1f63d9d9f374b3.zip | |
ZVISION: Add check to CursorMan::changeCursor to prevent extraneous cursor changes
| -rw-r--r-- | engines/zvision/cursor_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/cursor_manager.cpp b/engines/zvision/cursor_manager.cpp index 698168b72a..361fe11714 100644 --- a/engines/zvision/cursor_manager.cpp +++ b/engines/zvision/cursor_manager.cpp @@ -65,6 +65,9 @@ void CursorManager::changeCursor(const Common::String &cursorName) { } void CursorManager::changeCursor(const Common::String &cursorName, bool pushed) { + if (_currentCursor.equals(cursorName) && _cursorIsPushed == pushed) + return; + if (_cursorIsPushed != pushed) _cursorIsPushed = pushed; |
