diff options
author | Paul Gilbert | 2017-02-22 22:37:27 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-22 22:37:27 -0500 |
commit | da30e1a0f5c0129694bb356d8fe556ed3c07247f (patch) | |
tree | 23b57a71d30f5fa5691062788a5be1653a6fa39c /engines/titanic | |
parent | efadb34b8d5e42ae20a5151687980721dc320c98 (diff) | |
download | scummvm-rg350-da30e1a0f5c0129694bb356d8fe556ed3c07247f.tar.gz scummvm-rg350-da30e1a0f5c0129694bb356d8fe556ed3c07247f.tar.bz2 scummvm-rg350-da30e1a0f5c0129694bb356d8fe556ed3c07247f.zip |
TITANIC: Fix writeString character placement
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/support/font.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/titanic/support/font.cpp b/engines/titanic/support/font.cpp index f81251b10b..56f1af4718 100644 --- a/engines/titanic/support/font.cpp +++ b/engines/titanic/support/font.cpp @@ -214,6 +214,7 @@ void STFont::writeString(CVideoSurface *surface, const Point &destPos, Rect &cli // Form a rect of the area of the next character to draw Rect charRect(_chars[c]._offset, textRect.top, _chars[c]._offset + _chars[c]._width, textRect.bottom); + int textX = textPt.x; if (textPt.x < clipRect.left) { // Character is either partially or entirely left off-screen @@ -237,6 +238,7 @@ void STFont::writeString(CVideoSurface *surface, const Point &destPos, Rect &cli // At this point, we know we've got to draw at least part of a character, // and have figured out the area of the character to draw copyRect(surface, textPt, charRect); + textPt.x = textX + _chars[c]._width; } } |