diff options
author | Einar Johan Trøan Sømåen | 2013-03-24 18:30:28 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-03-24 18:31:01 +0100 |
commit | f17d69f23ec6246307a4d9d898511da7e762c61c (patch) | |
tree | 394b6b4b4a5299934f7b8ec6b57149bafe780e12 /engines/wintermute/base/gfx | |
parent | 149bb0ca008fb0d53546ca254cf2071e59a380ae (diff) | |
download | scummvm-rg350-f17d69f23ec6246307a4d9d898511da7e762c61c.tar.gz scummvm-rg350-f17d69f23ec6246307a4d9d898511da7e762c61c.tar.bz2 scummvm-rg350-f17d69f23ec6246307a4d9d898511da7e762c61c.zip |
WINTERMUTE: Fix random crash after save/load.
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 061f52776e..13e2b9a5bc 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -172,6 +172,8 @@ bool BaseRenderOSystem::flip() { _dirtyRect = nullptr; g_system->updateScreen(); _needsFlip = false; + _drawNum = 1; + addDirtyRect(_renderRect); return true; } if (!_disableDirtyRects) { @@ -646,6 +648,8 @@ void BaseRenderOSystem::endSaveLoad() { it = _renderQueue.erase(it); delete ticket; } + _lastAddedTicket = _renderQueue.begin(); + _previousTicket = nullptr; // HACK: After a save the buffer will be drawn before the scripts get to update it, // so just skip this single frame. _skipThisFrame = true; |