fix utf8 handling

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@792 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-11-24 13:38:23 +00:00
commit 904f0e0263
3 changed files with 13 additions and 13 deletions

View file

@ -303,7 +303,7 @@ int MwTextWidth(MwWidget handle, const char* text) {
(void)handle;
#endif
return strlen(text) * FontWidth;
return MwUTF8Length(text) * FontWidth;
}
int MwTextHeight(MwWidget handle, const char* text) {