mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
GOB: Don't overwrite _destSpriteX after PRINTTEXT
Don't overwrite _destSpriteX after PRINTTEXT with a value that's only appropriate for monospaced fonts; support for non-monospaced fonts has been introduced with Woodruff. This should fix bug #3295889.
This commit is contained in:
parent
30f7cdb49a
commit
a1c339ea4f
@ -899,17 +899,12 @@ void Draw_v2::spriteOperation(int16 operation) {
|
||||
_spriteTop = spriteTop;
|
||||
_spriteRight = spriteRight;
|
||||
_spriteBottom = spriteBottom;
|
||||
_destSpriteX = destSpriteX;
|
||||
if (operation != DRAW_PRINTTEXT)
|
||||
_destSpriteX = destSpriteX;
|
||||
_destSpriteY = destSpriteY;
|
||||
_destSurface = destSurface;
|
||||
_sourceSurface = sourceSurface;
|
||||
|
||||
if (operation == DRAW_PRINTTEXT) {
|
||||
len = _fonts[_fontIndex]->getCharWidth();
|
||||
adjustCoords(1, &len, 0);
|
||||
_destSpriteX += len * strlen(_textToPrint);
|
||||
}
|
||||
|
||||
if ((_renderFlags & RENDERFLAG_USEDELTAS) && !deltaVeto) {
|
||||
if (_sourceSurface == kBackSurface) {
|
||||
_spriteLeft -= _backDeltaX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user