Fix for bug #1107815 (SAM: Conroy Bumpus' song subtitles always present)

svn-id: r17017
This commit is contained in:
Max Horn 2005-03-06 23:36:37 +00:00
parent b5dc4960a4
commit 68dce52387

View File

@ -1005,6 +1005,10 @@ void ScummEngine::drawBox(int x, int y, int x2, int y2, int color) {
error("can only copy bg to main window");
bgbuff = vs->getBackPixels(x, y);
blit(backbuff, vs->pitch, bgbuff, vs->pitch, width, height);
if (_charset->_hasMask) {
byte *mask = (byte *)gdi._textSurface.pixels + gdi._textSurface.pitch * (y - _screenTop) + x;
fill(mask, gdi._textSurface.pitch, CHARSET_MASK_TRANSPARENCY, width, height);
}
} else {
fill(backbuff, vs->pitch, color, width, height);
}