diff options
author | Max Horn | 2004-08-10 21:54:29 +0000 |
---|---|---|
committer | Max Horn | 2004-08-10 21:54:29 +0000 |
commit | 390c4dccbbfbdfb1503882e5d97f956e07821433 (patch) | |
tree | 674f202608aa69d30cdc69c9fa322437fd4d1193 /scumm | |
parent | 720ea20bed7c6c81af7e0ce41faeaee8c76ad2ce (diff) | |
download | scummvm-rg350-390c4dccbbfbdfb1503882e5d97f956e07821433.tar.gz scummvm-rg350-390c4dccbbfbdfb1503882e5d97f956e07821433.tar.bz2 scummvm-rg350-390c4dccbbfbdfb1503882e5d97f956e07821433.zip |
Fix by erik for bug #1006098 (FBDEMO: Subtitle regression in intro)
svn-id: r14541
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/charset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index 528d25edde..521ab701b2 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -982,7 +982,7 @@ void CharsetRendererV3::printChar(int chr) { if (_ignoreCharsetMask || !vs->hasTwoBuffers) { dest_ptr = vs->screenPtr + vs->xstart + drawTop * vs->width + _left; } else { - dest_ptr = (byte *)_vm->gdi._textSurface.pixels + drawTop * _vm->gdi._textSurface.pitch + _left; + dest_ptr = (byte *)_vm->gdi._textSurface.pixels + _top * _vm->gdi._textSurface.pitch + _left; } drawBits1(vs, dest_ptr, char_ptr, drawTop, 8, 8); @@ -1098,7 +1098,7 @@ void CharsetRendererClassic::printChar(int chr) { if (_ignoreCharsetMask || !vs->hasTwoBuffers) { dst = vs->screenPtr + vs->xstart + drawTop * vs->width + _left; } else { - dst = (byte *)_vm->gdi._textSurface.pixels + drawTop * _vm->gdi._textSurface.pitch + _left; + dst = (byte *)_vm->gdi._textSurface.pixels + _top * _vm->gdi._textSurface.pitch + _left; } back = dst; |