SCUMM: (DIG/CJK) - fix bug in charset rendering

This fixes the bug shown in the fourth row of screenshots in ticket no. 11656 (DIG Asteroid scene). That bug could basically appear in any other scene which uses the xstart offset.
This commit is contained in:
athrxx 2020-09-27 17:11:54 +02:00
parent c5216c6367
commit e665730d3d

View file

@ -868,7 +868,7 @@ void CharsetRendererClassic::printCharIntern(bool is2byte, const byte *charPtr,
}
if (is2byte && _vm->_game.platform != Common::kPlatformFMTowns)
drawBits1(dstSurface, _left, drawTop, charPtr, drawTop, origWidth, origHeight);
drawBits1(dstSurface, _left + vs->xstart, drawTop, charPtr, drawTop, origWidth, origHeight);
else
drawBitsN(dstSurface, dstPtr, charPtr, *_fontPtr, drawTop, origWidth, origHeight);