diff options
author | Max Horn | 2004-10-01 09:06:12 +0000 |
---|---|---|
committer | Max Horn | 2004-10-01 09:06:12 +0000 |
commit | 763eae3f70b1caf1119ddd0dfde4e6cfa2853ec2 (patch) | |
tree | edf256f289657e7dcaafa4366850ff7a3a49ec22 | |
parent | ff975beeee6f21ebc5ccad6693f3ca5580d1e408 (diff) | |
download | scummvm-rg350-763eae3f70b1caf1119ddd0dfde4e6cfa2853ec2.tar.gz scummvm-rg350-763eae3f70b1caf1119ddd0dfde4e6cfa2853ec2.tar.bz2 scummvm-rg350-763eae3f70b1caf1119ddd0dfde4e6cfa2853ec2.zip |
Fixed text rendering in vertical scrolling rooms in COMI (I hope), fixes bug #1036707 (COMI: Subtitles positioned incorrect)
svn-id: r15367
-rw-r--r-- | scumm/charset.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index 79b7a8acda..aed8e66e1c 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -1515,15 +1515,18 @@ void CharsetRendererNut::printChar(int chr) { _hasMask = true; _textScreenID = kMainVirtScreen; } + + int drawTop = _top; if (_ignoreCharsetMask) { VirtScreen *vs = &_vm->virtscr[kMainVirtScreen]; s = *vs; - s.pixels = vs->getPixels(0, _vm->_screenTop); + s.pixels = vs->getPixels(0, 0); } else { s = _vm->gdi._textSurface; + drawTop -= _vm->_screenTop; } - _current->drawShadowChar(s, chr, _left, _top, _color, _curId != 3); + _current->drawShadowChar(s, chr, _left, drawTop, _color, _curId != 3); _vm->markRectAsDirty(kMainVirtScreen, shadow); if (_str.left > _left) |