diff options
author | Max Horn | 2004-09-26 16:53:51 +0000 |
---|---|---|
committer | Max Horn | 2004-09-26 16:53:51 +0000 |
commit | f3fe01fa6703476ba06742305dcf8a25ea39e03f (patch) | |
tree | e54ec4001bd3e2378e9f17562301d2a5c16d90d5 | |
parent | 8f4a5ea3a5d419f1e72b6d4726e13b45b7624c00 (diff) | |
download | scummvm-rg350-f3fe01fa6703476ba06742305dcf8a25ea39e03f.tar.gz scummvm-rg350-f3fe01fa6703476ba06742305dcf8a25ea39e03f.tar.bz2 scummvm-rg350-f3fe01fa6703476ba06742305dcf8a25ea39e03f.zip |
Text clipping in charset renderer was broken in some cases, fixed (this might help bug #1033857)
svn-id: r15298
-rw-r--r-- | scumm/charset.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index 4e95977110..1b4a08f216 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -1307,6 +1307,10 @@ void CharsetRendererClassic::printChar(int chr) { dst = vs->getBackPixels(_left, drawTop); } + if (!_ignoreCharsetMask && vs->hasTwoBuffers) { + drawTop = _top - _vm->_screenTop; + } + if (is2byte) { drawBits1(dstSurface, dst, charPtr, drawTop, origWidth, origHeight); } else { |