diff options
-rw-r--r-- | engines/gob/draw_v2.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index 8ff7fc64a4..5eb6780468 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -447,9 +447,12 @@ void Draw_v2::printTotText(int16 id) { } } - rectLeft = _fonts[_fontIndex]->getCharWidth(); + rectLeft = 0; + for (int i = 0; i < strPosBak; i++) + rectLeft += _fonts[_fontIndex]->getCharWidth(str[i]); + adjustCoords(1, &rectLeft, 0); - offX += strPosBak * rectLeft; + offX += rectLeft; strPos = 0; strPos2 = -1; memset(mask, 0, 80); |