aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/zvision.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index f7e0ab821d..2090d8abfe 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -116,9 +116,8 @@ void ZVision::initialize() {
initGraphics(WINDOW_WIDTH, WINDOW_HEIGHT, true, &_pixelFormat);
- _scriptManager->initialize();
- // Has to be done after graphics has been initialized
_cursorManager->initialize();
+ _scriptManager->initialize();
// Create debugger console. It requires GFX to be initialized
_console = new Console(this);
@@ -131,10 +130,12 @@ Common::Error ZVision::run() {
while (!shouldQuit()) {
_clock.update();
uint32 currentTime = _clock.getLastMeasuredTime();
-
+ uint32 deltaTime = _clock.getDeltaTime();
+
processEvents();
- _scriptManager->update(_clock.getDeltaTime());
+ _scriptManager->update(deltaTime);
+ _renderManager->update(deltaTime);
// Update the screen
_system->updateScreen();