From b4b60e1f632f928bb3f28b99ff4689a9cd24c680 Mon Sep 17 00:00:00 2001 From: richiesams Date: Fri, 9 Aug 2013 12:16:43 -0500 Subject: ZVISION: Call _system->updateScreen() every frame Otherwise the cursor will not be updated --- engines/zvision/render_manager.cpp | 7 ------- engines/zvision/render_manager.h | 1 - engines/zvision/zvision.cpp | 6 +++--- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index 1473dcccac..f759c1fb96 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -49,13 +49,6 @@ RenderManager::~RenderManager() { } } -void RenderManager::updateScreen(bool isConsoleActive) { - if (_needsScreenUpdate || isConsoleActive) { - _system->updateScreen(); - _needsScreenUpdate = false; - } -} - void RenderManager::renderSubRectToScreen(uint16 *buffer, uint32 imageWidth, uint32 imageHeight, uint32 horizontalPitch, uint32 destinationX, uint32 destinationY, Common::Rect subRectangle, bool autoCenter) { // Panoramas are transposed // The actual data is transposed in mutateImage diff --git a/engines/zvision/render_manager.h b/engines/zvision/render_manager.h index 3352f415a9..4b4e178e91 100644 --- a/engines/zvision/render_manager.h +++ b/engines/zvision/render_manager.h @@ -61,7 +61,6 @@ private: public: void initialize(); - void updateScreen(bool isConsoleActive); /** * Blits the image or a portion of the image to the screen. Actual screen updates won't happen until the end of the frame. diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 7c9bdd8877..338bbc5fbc 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -130,9 +130,9 @@ Common::Error ZVision::run() { _scriptManager->updateNodes(_clock.getDeltaTime()); _scriptManager->checkPuzzleCriteria(); - // Render a frame - _renderManager->updateScreen(_console->isActive()); - + // Update the screen + _system->updateScreen(); + // Calculate the frame delay based off a desired frame time int delay = _desiredFrameTime - int32(_system->getMillis() - currentTime); // Ensure non-negative -- cgit v1.2.3