aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp8
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;