diff options
author | Einar Johan Trøan Sømåen | 2012-12-02 07:54:51 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-02 07:54:51 +0100 |
commit | c00ee9d801c5052b46fb3624f8dd9aa00260ca71 (patch) | |
tree | 8c90a92c2ddcf3ce6ac7b2d43990a25988676808 | |
parent | 4efd40e41eb44e13c28b73c4eb06b3d2105f88e0 (diff) | |
download | scummvm-rg350-c00ee9d801c5052b46fb3624f8dd9aa00260ca71.tar.gz scummvm-rg350-c00ee9d801c5052b46fb3624f8dd9aa00260ca71.tar.bz2 scummvm-rg350-c00ee9d801c5052b46fb3624f8dd9aa00260ca71.zip |
WINTERMUTE: Reset _wantsDraw when no part of the screen is dirty.
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 6 |
1 files changed, 6 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 7970a25300..074ea2b9a0 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -435,6 +435,12 @@ void BaseRenderOSystem::drawTickets() { } } if (!_dirtyRect || _dirtyRect->width() == 0 || _dirtyRect->height() == 0) { + RenderQueueIterator it = _renderQueue.begin(); + while (it != _renderQueue.end()) { + RenderTicket *ticket = *it; + ticket->_wantsDraw = false; + ++it; + } return; } // The color-mods are stored in the RenderTickets on add, since we set that state again during |