mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 20:04:01 +02:00
Fix text in some buttons being cut off prematurely
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user