From 3e44180e479c549403ff7144b460b453571f750f Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 17 Jan 2010 18:41:28 +0000 Subject: 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 --- engines/sci/graphics/animate.h | 2 ++ engines/sci/graphics/gui.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'engines/sci/graphics') 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); } -- cgit v1.2.3