forked from pyrite-dev/milsko
things
This commit is contained in:
parent
37fae993b9
commit
89911082ed
9 changed files with 160 additions and 18 deletions
|
|
@ -74,7 +74,7 @@ void MwDrawText(MwWidget handle, MwFLFont ttf, MwPoint* point, const char* text,
|
|||
if(!MwGetInteger(handle, MwNbitmapFont) && ttf <= MwFLBuildFont(0xff)) ttf = assume_ttf(handle, ttf);
|
||||
#endif
|
||||
|
||||
p.y -= MwTextHeight(handle, ttf, text) / 2 - (MwTextHeight(handle, ttf, text) / count_nl(text)) / 2;
|
||||
p.y -= (MwTextHeight(handle, ttf, text) - (MwTextHeight(handle, ttf, text) / count_nl(text))) / 2;
|
||||
|
||||
while(*input != 0) {
|
||||
input += MwUTF8ToUTF32(input, &cp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue