aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-09 12:16:43 -0500
committerrichiesams2013-08-09 12:16:43 -0500
commitb4b60e1f632f928bb3f28b99ff4689a9cd24c680 (patch)
tree09461635cd4fd33d362772633d4c97539ce08cd9
parentf67e0042b046c57526f72d8f33b7c36b5508a66a (diff)
downloadscummvm-rg350-b4b60e1f632f928bb3f28b99ff4689a9cd24c680.tar.gz
scummvm-rg350-b4b60e1f632f928bb3f28b99ff4689a9cd24c680.tar.bz2
scummvm-rg350-b4b60e1f632f928bb3f28b99ff4689a9cd24c680.zip
ZVISION: Call _system->updateScreen() every frame
Otherwise the cursor will not be updated
-rw-r--r--engines/zvision/render_manager.cpp7
-rw-r--r--engines/zvision/render_manager.h1
-rw-r--r--engines/zvision/zvision.cpp6
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