SCUMM: fix SCUMM3 FM-TOWNS font rendering glitch in Japanese mode

(Wrong character height for non-SJIS chars which messed up the inventory scrolling arrows)
This commit is contained in:
athrxx 2011-06-19 14:46:02 +02:00
parent 9f8850fd91
commit 984407de84

View File

@ -789,8 +789,10 @@ void CharsetRendererV3::printChar(int chr, bool ignoreCharsetMask) {
else if (_vm->_cjkFont) else if (_vm->_cjkFont)
_vm->_cjkFont->drawChar(_vm->_textSurface, chr, _left * _vm->_textSurfaceMultiplier, _top * _vm->_textSurfaceMultiplier, _color, _shadowColor); _vm->_cjkFont->drawChar(_vm->_textSurface, chr, _left * _vm->_textSurfaceMultiplier, _top * _vm->_textSurfaceMultiplier, _color, _shadowColor);
#endif #endif
if (is2byte) if (is2byte) {
origWidth /= _vm->_textSurfaceMultiplier; origWidth /= _vm->_textSurfaceMultiplier;
height /= _vm->_textSurfaceMultiplier;
}
} }
if (_str.left > _left) if (_str.left > _left)
@ -804,8 +806,8 @@ void CharsetRendererV3::printChar(int chr, bool ignoreCharsetMask) {
_str.right++; _str.right++;
} }
if (_str.bottom < _top + height / _vm->_textSurfaceMultiplier) if (_str.bottom < _top + height)
_str.bottom = _top + height / _vm->_textSurfaceMultiplier; _str.bottom = _top + height;
} }
void CharsetRendererV3::drawChar(int chr, Graphics::Surface &s, int x, int y) { void CharsetRendererV3::drawChar(int chr, Graphics::Surface &s, int x, int y) {