diff options
author | Max Horn | 2004-01-08 02:16:27 +0000 |
---|---|---|
committer | Max Horn | 2004-01-08 02:16:27 +0000 |
commit | 619e6b43c4afe433a9f81e1de948ff4eb40fe020 (patch) | |
tree | 61b50ed22933244c37d77d26c4349d699fb11fc2 | |
parent | f224da09f4ae85ededff2b63734d375b20451dcc (diff) | |
download | scummvm-rg350-619e6b43c4afe433a9f81e1de948ff4eb40fe020.tar.gz scummvm-rg350-619e6b43c4afe433a9f81e1de948ff4eb40fe020.tar.bz2 scummvm-rg350-619e6b43c4afe433a9f81e1de948ff4eb40fe020.zip |
Fix for bug #803381 (COMI: Text cut off)
svn-id: r12231
-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 bc33852a62..bca2e5c64f 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -1298,12 +1298,15 @@ void CharsetRendererNut::printChar(int chr) { _current->drawShadowChar(chr, _left, _top - _vm->_screenTop, _color, !_ignoreCharsetMask); _vm->markRectAsDirty(kMainVirtScreen, shadow_left, shadow_right, shadow_top, shadow_bottom, 0); + if (_str.left > _left) + _str.left = _left; + _left += width; - if (shadow_right > _str.right) + if (_str.right < shadow_right ) _str.right = shadow_right; - if (shadow_bottom > _str.bottom) + if (_str.bottom < shadow_bottom) _str.bottom = shadow_bottom; } |