Text clipping in charset renderer was broken in some cases, fixed (this might help bug #1033857)

svn-id: r15298
This commit is contained in:
Max Horn 2004-09-26 16:53:51 +00:00
parent 8f4a5ea3a5
commit f3fe01fa67

View File

@ -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 {