diff options
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/animate.h | 2 | ||||
-rw-r--r-- | engines/sci/graphics/gui.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/animate.h b/engines/sci/graphics/animate.h index 146893faf5..db09342d4b 100644 --- a/engines/sci/graphics/animate.h +++ b/engines/sci/graphics/animate.h @@ -80,6 +80,8 @@ public: void addToPicDrawCels(); void addToPicDrawView(GuiResourceId viewId, int16 loopNo, int16 celNo, int16 leftPos, int16 topPos, int16 priority, int16 control); + uint16 getLastCastCount() { return _lastCastCount; }; + private: void init(); diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 1c418cbed7..af405807be 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -675,6 +675,9 @@ void SciGui::animate(reg_t listReference, bool cycle, int argc, reg_t *argv) { _animate->updateScreen(old_picNotValid); _animate->restoreAndDelete(argc, argv); + if (_animate->getLastCastCount() > 1) + _s->_throttleTrigger = true; + _gfx->SetPort(oldPort); } |