From 6ca15d0888922e95fe9fdd52c09586e35250d4fd Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 3 Oct 2010 14:32:09 +0000 Subject: SCUMM/FM-TOWNS: fix drawBox() svn-id: r52991 --- engines/scumm/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm') diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index 5a2be3f7d8..a3977a9fee 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -1311,7 +1311,7 @@ void ScummEngine::drawBox(int x, int y, int x2, int y2, int color) { byte *mask = (byte *)_textSurface.getBasePtr(x * _textSurfaceMultiplier, (y - _screenTop + vs->topline) * _textSurfaceMultiplier); fill(mask, _textSurface.pitch, color, width * _textSurfaceMultiplier, height * _textSurfaceMultiplier, _textSurface.bytesPerPixel); - if (_game.id == GID_MONKEY2 || _game.id == GID_INDY4) + if (_game.id == GID_MONKEY2 || _game.id == GID_INDY4 || ((_game.id == GID_INDY3 || _game.id == GID_ZAK) && vs->number != kTextVirtScreen) || (_game.id == GID_LOOM && vs->number == kMainVirtScreen)) return; } -- cgit v1.2.3