diff options
author | Florian Kagerer | 2010-10-02 23:18:15 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-10-02 23:18:15 +0000 |
commit | 77fe52bbd787f1c379061fdfee67eeea248a5465 (patch) | |
tree | c70239fb762b715dbe13666c53951bb28209e317 /engines/scumm/gfx.cpp | |
parent | a6839d5ffdb1a6446ec77f26d6136694592dae13 (diff) | |
download | scummvm-rg350-77fe52bbd787f1c379061fdfee67eeea248a5465.tar.gz scummvm-rg350-77fe52bbd787f1c379061fdfee67eeea248a5465.tar.bz2 scummvm-rg350-77fe52bbd787f1c379061fdfee67eeea248a5465.zip |
INDY3/FM-TOWNS: fix intro graphics bug
svn-id: r52987
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r-- | engines/scumm/gfx.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index 2ee54337b8..5a2be3f7d8 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -326,7 +326,7 @@ void ScummEngine::initScreens(int b, int h) { if (!_townsClearLayerFlag && (h - b != _virtscr[kMainVirtScreen].h)) _townsScreen->clearLayer(0); - if (_game.id == GID_MONKEY2 || _game.id == GID_INDY4) { + if (_game.id != GID_MONKEY) { _textSurface.fillRect(Common::Rect(0, 0, _textSurface.w * _textSurfaceMultiplier, _textSurface.h * _textSurfaceMultiplier), 0); _townsScreen->clearLayer(1); } @@ -3678,18 +3678,17 @@ void ScummEngine::fadeOut(int effect) { if (_game.version < 7) camera._last.x = camera._cur.x; + if (_game.version == 3 && _game.platform == Common::kPlatformFMTowns) + _textSurface.fillRect(Common::Rect(0, vs->topline * _textSurfaceMultiplier, _textSurface.pitch, (vs->topline + vs->h) * _textSurfaceMultiplier), 0); + // TheDig can disable fadeIn(), and may call fadeOut() several times // successively. Disabling the _screenEffectFlag check forces the screen // to get cleared. This fixes glitches, at least, in the first cutscenes // when bypassed of FT and TheDig. if ((_game.version == 7 || _screenEffectFlag) && effect != 0) { - // Fill screen 0 with black memset(vs->getPixels(0, 0), 0, vs->pitch * vs->h); - if (_game.version == 3 && _game.platform == Common::kPlatformFMTowns) - _textSurface.fillRect(Common::Rect(0, vs->topline * _textSurfaceMultiplier, _textSurface.pitch, (vs->topline + vs->h) * _textSurfaceMultiplier), 0); - // Fade to black with the specified effect, if any. switch (effect) { case 1: |