aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/gfx.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-11-22 08:20:20 +0000
committerTravis Howell2009-11-22 08:20:20 +0000
commit2d31fc3af87526eefb63746c77ea3e7e7d32e90a (patch)
treeb137ce8cc82ff8f06c0fab34a503d0f544893808 /engines/scumm/gfx.cpp
parent9886c8fb91f12e0e0fad9a9ae92a09d4a98a4a67 (diff)
downloadscummvm-rg350-2d31fc3af87526eefb63746c77ea3e7e7d32e90a.tar.gz
scummvm-rg350-2d31fc3af87526eefb63746c77ea3e7e7d32e90a.tar.bz2
scummvm-rg350-2d31fc3af87526eefb63746c77ea3e7e7d32e90a.zip
Add patch for Tobias, for Kanji support in Japanese PCE version of Loom, with minor changes.
svn-id: r46061
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r--engines/scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 203d746184..651bbec1ab 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -1089,7 +1089,7 @@ void ScummEngine::clearCharsetMask() {
}
void ScummEngine::clearTextSurface() {
- memset(_textSurface.pixels, CHARSET_MASK_TRANSPARENCY, _textSurface.pitch * _textSurface.h);
+ fill((byte*)_textSurface.pixels, _textSurface.pitch, CHARSET_MASK_TRANSPARENCY, _textSurface.w, _textSurface.h, _textSurface.bytesPerPixel);
}
byte *ScummEngine::getMaskBuffer(int x, int y, int z) {