GOB: Fix text end positons for non-monospaced fonts
Fixes Adibou's recipices. svn-id: r55682
This commit is contained in:
parent
9810ec1442
commit
a8d62921c7
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
adjustCoords(1, &rectLeft, 0);
|
||||||
offX += strPosBak * rectLeft;
|
offX += rectLeft;
|
||||||
strPos = 0;
|
strPos = 0;
|
||||||
strPos2 = -1;
|
strPos2 = -1;
|
||||||
memset(mask, 0, 80);
|
memset(mask, 0, 80);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue