diff options
author | Martin Kiewitz | 2010-01-17 18:41:28 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-17 18:41:28 +0000 |
commit | 3e44180e479c549403ff7144b460b453571f750f (patch) | |
tree | 9966fde1f085eb5a2410648fa6f2c41802e01b5d /engines/sci/graphics | |
parent | cb1419ece9afa9f11d8ac5279f8fb8ea34fa960d (diff) | |
download | scummvm-rg350-3e44180e479c549403ff7144b460b453571f750f.tar.gz scummvm-rg350-3e44180e479c549403ff7144b460b453571f750f.tar.bz2 scummvm-rg350-3e44180e479c549403ff7144b460b453571f750f.zip |
SCI: speed throttler changed, now gets triggered by kAnimate, removed initial no-delay, i'm still getting animation now in iceman and sq3, slow palette animation in longbow fixed
svn-id: r47343
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); } |