aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 50d7cb6983..180ca9d367 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -942,7 +942,7 @@ reg_t kAnimate(EngineState *s, int argc, reg_t *argv) {
uint32 duration = curTime - s->_lastAnimateTime;
if (duration < 50) {
- g_system->delayMillis(50-duration);
+ gfxop_sleep(s->gfx_state, 50-duration);
}
s->_lastAnimateTime = curTime;