Skip to content

Commit

Permalink
HOPKINS: Hide cursor during cutscenes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Torbjörn Andersson committed Feb 10, 2013
1 parent 3fc929d commit e5c04b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/hopkins/anim.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}

/**
Expand All @@ -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);
Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit e5c04b0

Please sign in to comment.