diff options
author | Max Horn | 2007-07-08 22:13:50 +0000 |
---|---|---|
committer | Max Horn | 2007-07-08 22:13:50 +0000 |
commit | 0a662bfb7e057b0d5302a78687387543836c8c32 (patch) | |
tree | d82fc2ad195dfd6c8e1a1e183b171ce918a3ccf6 /engines/scumm/scumm.cpp | |
parent | 14244685f3674f156a202dcb87bc3c01678e12f2 (diff) | |
download | scummvm-rg350-0a662bfb7e057b0d5302a78687387543836c8c32.tar.gz scummvm-rg350-0a662bfb7e057b0d5302a78687387543836c8c32.tar.bz2 scummvm-rg350-0a662bfb7e057b0d5302a78687387543836c8c32.zip |
cleanup in ScummEngine::drawStripToScreen; in particular, the code is now more efficient for The Dig, FT and COMI
svn-id: r27980
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 3024f7d900..f29f1c7970 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -521,7 +521,11 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) _screenHeight = 200; } - _compositeBuf = (byte *)malloc(_screenWidth * _screenHeight); + // Allocate gfx compositing buffer (not needed for V7/V8 games). + if (_game.version < 7) + _compositeBuf = (byte *)malloc(_screenWidth * _screenHeight); + else + _compositeBuf = 0; _herculesBuf = 0; if (_renderMode == Common::kRenderHercA || _renderMode == Common::kRenderHercG) { |