This commit is contained in:
Nishi 2026-05-06 00:12:06 +09:00
commit 89911082ed
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 160 additions and 18 deletions

View file

@ -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);