From 270de2a503a00c34648a18ec268768808a6a040c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 6 Oct 2004 01:01:44 +0000 Subject: Ooops svn-id: r15425 --- scumm/charset.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scumm/charset.cpp') diff --git a/scumm/charset.cpp b/scumm/charset.cpp index 760b84a3a2..62a6c6ddf0 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -1320,11 +1320,15 @@ void CharsetRendererClassic::printChar(int chr) { dst.right = dst.left + width; dst.bottom = dst.top + height; - if (dst.left < 0) + if (dst.left < 0) { + dstPtr -= _left; dst.left = 0; + } - if (dst.top < 0) + if (dst.top < 0) { + dstPtr -= _top * dstSurface.pitch; dst.top = 0; + } if ((dst.left >= dst.right) || (dst.top >= dst.bottom)) return; -- cgit v1.2.3