diff options
author | Travis Howell | 2004-10-06 01:01:44 +0000 |
---|---|---|
committer | Travis Howell | 2004-10-06 01:01:44 +0000 |
commit | 270de2a503a00c34648a18ec268768808a6a040c (patch) | |
tree | cb76fce74f1da80dbdb9d240895aa1afed0f4532 /scumm | |
parent | 23ae8207deda440157c31b8f2493f268c8d0d0bd (diff) | |
download | scummvm-rg350-270de2a503a00c34648a18ec268768808a6a040c.tar.gz scummvm-rg350-270de2a503a00c34648a18ec268768808a6a040c.tar.bz2 scummvm-rg350-270de2a503a00c34648a18ec268768808a6a040c.zip |
Ooops
svn-id: r15425
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/charset.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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; |