From 9b8bad3c834ebb4287305d86cdb991f565738814 Mon Sep 17 00:00:00 2001 From: richiesams Date: Wed, 14 Aug 2013 10:46:12 -0500 Subject: ZVISION: Add _renderManager::update() to ZEngene::run() --- engines/zvision/zvision.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines') 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(); -- cgit v1.2.3