diff options
author | Bastien Bouclet | 2017-07-10 07:26:13 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-07-22 20:38:56 +0200 |
commit | 9cb6c872b7ffb2a852a81c19369dcae4f8b6c8ed (patch) | |
tree | fd1ba2c3a065bdac8a48e0053deec4c0973a33c7 /engines/mohawk/myst_stacks | |
parent | 8f0fa86fbc88e324bdc5c8f4034056104a51003b (diff) | |
download | scummvm-rg350-9cb6c872b7ffb2a852a81c19369dcae4f8b6c8ed.tar.gz scummvm-rg350-9cb6c872b7ffb2a852a81c19369dcae4f8b6c8ed.tar.bz2 scummvm-rg350-9cb6c872b7ffb2a852a81c19369dcae4f8b6c8ed.zip |
MOHAWK: Myst: Decorrelate hotspot handling from event handling
This makes sure doFrame can be called from anywhere, including scripts.
Diffstat (limited to 'engines/mohawk/myst_stacks')
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index ff2415c6c5..8e130c8c62 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -2345,7 +2345,7 @@ void Myst::o_rocketPianoMove(uint16 op, uint16 var, uint16 argc, uint16 *argv) { _vm->_gfx->copyImageSectionToScreen(key->getSubImage(0).wdib, src, dest); if (piano.contains(mouse)) { - MystArea *resource = _vm->updateCurrentResource(); + MystArea *resource = _vm->forceUpdateClickedResource(); if (resource && resource->type == kMystAreaDrag) { // Press new key key = static_cast<MystAreaDrag *>(resource); @@ -2372,8 +2372,6 @@ void Myst::o_rocketPianoMove(uint16 op, uint16 var, uint16 argc, uint16 *argv) { _vm->_sound->resumeBackgroundMyst(); } } - - _vm->_system->updateScreen(); } void Myst::o_rocketPianoStop(uint16 op, uint16 var, uint16 argc, uint16 *argv) { |