fix utf8 handling
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@792 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
2b9597dad7
commit
904f0e0263
3 changed files with 13 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue