mirror of
https://github.com/siemens-mobile-hacks/libsie.git
synced 2026-11-25 21:47:35 +00:00
Fix DrawBoundingString function
This commit is contained in:
parent
4a468a5af3
commit
8dceb06d2f
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ static void DrawBoundingString(WSHDR *ws, int x, int y, int x2, int y2,
|
|||
if (len <= 1) {
|
||||
break;
|
||||
} else {
|
||||
Sie_FT_GetStringSize(copy_ws, font_size, &w, &h);
|
||||
if (w > x2 - x) {
|
||||
wsRemoveChars(copy_ws, len - 1, len);
|
||||
len -= 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue