Fix text in some buttons being cut off prematurely

This commit is contained in:
jacob1 2022-10-31 16:22:25 -04:00
parent cf89fb7dfb
commit 3011e45475
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -489,7 +489,7 @@ int Graphics::textwidthx(const String &str, int w)
i += 3; i += 3;
continue; continue;
} }
cw += FontReader(str[i]).GetWidth(); cw = FontReader(str[i]).GetWidth();
if (x+(cw/2) >= w) if (x+(cw/2) >= w)
break; break;
x += cw; x += cw;