Fix text in some buttons being cut off prematurely
This commit is contained in:
parent
cf89fb7dfb
commit
3011e45475
@ -489,7 +489,7 @@ int Graphics::textwidthx(const String &str, int w)
|
||||
i += 3;
|
||||
continue;
|
||||
}
|
||||
cw += FontReader(str[i]).GetWidth();
|
||||
cw = FontReader(str[i]).GetWidth();
|
||||
if (x+(cw/2) >= w)
|
||||
break;
|
||||
x += cw;
|
||||
|
Loading…
Reference in New Issue
Block a user