diff options
author | richiesams | 2013-08-14 10:46:12 -0500 |
---|---|---|
committer | richiesams | 2013-08-14 11:20:23 -0500 |
commit | 9b8bad3c834ebb4287305d86cdb991f565738814 (patch) | |
tree | f05c4678e56d8630e40e0617dc7d6cf7ada0e24b /engines/zvision | |
parent | 0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b (diff) | |
download | scummvm-rg350-9b8bad3c834ebb4287305d86cdb991f565738814.tar.gz scummvm-rg350-9b8bad3c834ebb4287305d86cdb991f565738814.tar.bz2 scummvm-rg350-9b8bad3c834ebb4287305d86cdb991f565738814.zip |
ZVISION: Add _renderManager::update() to ZEngene::run()
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/zvision.cpp | 9 |
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(); |