aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2005-03-06 23:36:37 +0000
committerMax Horn2005-03-06 23:36:37 +0000
commit68dce52387191fa3354cf439f426a106749d3413 (patch)
tree52122e93d8726c57e40f1f977c138bfad6b4c72f
parentb5dc4960a4c5c7d76130e7c3fd4b62dec2b1ea84 (diff)
downloadscummvm-rg350-68dce52387191fa3354cf439f426a106749d3413.tar.gz
scummvm-rg350-68dce52387191fa3354cf439f426a106749d3413.tar.bz2
scummvm-rg350-68dce52387191fa3354cf439f426a106749d3413.zip
Fix for bug #1107815 (SAM: Conroy Bumpus' song subtitles always present)
svn-id: r17017
-rw-r--r--scumm/gfx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index dec67688c5..0dc1afb0f2 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -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);
}