aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-10-07 19:49:17 +0200
committerWillem Jan Palenstijn2013-10-07 19:49:17 +0200
commit7a3fb2f06a131885aa18d7426c5c3a57a04ed998 (patch)
tree6003f410f73b54a03e1fd2a04fc9ce9df491fb6c /engines/wintermute
parentf5c68659840839b0a6f1dc0f30b2b071248c40ad (diff)
downloadscummvm-rg350-7a3fb2f06a131885aa18d7426c5c3a57a04ed998.tar.gz
scummvm-rg350-7a3fb2f06a131885aa18d7426c5c3a57a04ed998.tar.bz2
scummvm-rg350-7a3fb2f06a131885aa18d7426c5c3a57a04ed998.zip
WINTERMUTE: Call updateScreen() every frame, even without updates.
This fixes expose events with the opengl backend.
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_render_osystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index f6ace34ce4..ff63789d18 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -197,11 +197,12 @@ bool BaseRenderOSystem::flip() {
// g_system->copyRectToScreen((byte *)_renderSurface->getPixels(), _renderSurface->pitch, _dirtyRect->left, _dirtyRect->top, _dirtyRect->width(), _dirtyRect->height());
delete _dirtyRect;
_dirtyRect = nullptr;
- g_system->updateScreen();
_needsFlip = false;
}
_lastFrameIter = _renderQueue.end();
+ g_system->updateScreen();
+
return STATUS_OK;
}