diff options
author | Torbjörn Andersson | 2013-02-10 22:26:12 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2013-02-10 22:26:12 +0100 |
commit | e5c04b0f2669dc17218400b978a8bbf6e449a656 (patch) | |
tree | 38d35ab7d0fb7d4e4bbc33e60ba45fa2d1c391de | |
parent | 3fc929d66cdec22a6f5cc185d3f6492bf7ea6011 (diff) | |
download | scummvm-rg350-e5c04b0f2669dc17218400b978a8bbf6e449a656.tar.gz scummvm-rg350-e5c04b0f2669dc17218400b978a8bbf6e449a656.tar.bz2 scummvm-rg350-e5c04b0f2669dc17218400b978a8bbf6e449a656.zip |
HOPKINS: Hide cursor during cutscenes
This hopefully fixes the regression that was recently introduced
where the cursor would be visible, but black, during cutscenes.
This was presumably because the color black in a mouse cursor no
longer necessarily means that it's transparent.
-rw-r--r-- | engines/hopkins/anim.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/hopkins/anim.cpp b/engines/hopkins/anim.cpp index 16d6d581db..b7571d6aff 100644 --- a/engines/hopkins/anim.cpp +++ b/engines/hopkins/anim.cpp @@ -53,6 +53,8 @@ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, ui if (_vm->shouldQuit()) return; + _vm->_eventsManager.mouseOff(); + bool hasScreenCopy = false; byte *screenP = _vm->_graphicsManager._vesaScreen; @@ -210,6 +212,8 @@ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, ui _vm->_graphicsManager.FADE_LINUX = 0; f.close(); _vm->_graphicsManager._skipVideoLockFl = false; + + _vm->_eventsManager.mouseOn(); } /** @@ -224,6 +228,8 @@ void AnimationManager::playAnim2(const Common::String &filename, uint32 rate1, u if (_vm->shouldQuit()) return; + _vm->_eventsManager.mouseOff(); + bool hasScreenCopy = false; while (!_vm->shouldQuit()) { memcpy(_vm->_graphicsManager._oldPalette, _vm->_graphicsManager._palette, 769); @@ -394,6 +400,8 @@ void AnimationManager::playAnim2(const Common::String &filename, uint32 rate1, u _vm->_graphicsManager.unlockScreen(); _vm->_graphicsManager.fadeInShort(); _vm->_graphicsManager.DD_VBL(); + + _vm->_eventsManager.mouseOn(); } /** |