diff options
author | Einar Johan Trøan Sømåen | 2012-12-02 08:29:48 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-02 08:29:48 +0100 |
commit | 2c1eb9d0f503b2cca32924c6dacadbebc80a37da (patch) | |
tree | 5ee57a83722ec87293c1df878d69712663f5735a | |
parent | ecb88fe3424f19361354f8c84d5113fbef09482f (diff) | |
download | scummvm-rg350-2c1eb9d0f503b2cca32924c6dacadbebc80a37da.tar.gz scummvm-rg350-2c1eb9d0f503b2cca32924c6dacadbebc80a37da.tar.bz2 scummvm-rg350-2c1eb9d0f503b2cca32924c6dacadbebc80a37da.zip |
WINTERMUTE: Make dirty rect-rendering available in config-file.
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 4 | ||||
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.h | 2 |
2 files changed, 5 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 c4cd3b813f..c141440c03 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -106,6 +106,10 @@ BaseRenderOSystem::BaseRenderOSystem(BaseGame *inGame) : BaseRenderer(inGame) { setAlphaMod(255); setColorMod(255, 255, 255); _dirtyRect = NULL; + _disableDirtyRects = true; + if (!ConfMan.hasKey("dirty_rects")) { + _disableDirtyRects = !ConfMan.getBool("dirty_rects"); + } } ////////////////////////////////////////////////////////////////////////// diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.h b/engines/wintermute/base/gfx/osystem/base_render_osystem.h index 0d52611b17..1e9b4ed2e2 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.h +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.h @@ -119,7 +119,7 @@ private: int _borderRight; int _borderBottom; - static const bool _disableDirtyRects = true; + bool _disableDirtyRects; float _ratioX; float _ratioY; uint32 _colorMod; |