Fix: WWT_TEXT with SetTextStyle did not work. (#10797)

FontSize was passed to incorrect parameter of DrawString function.
pull/532/head
PeterN 1 year ago committed by GitHub
parent d68c4bbd2f
commit 6998fbf71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -510,7 +510,7 @@ static inline void DrawText(const Rect &r, TextColour colour, StringID str, Stri
{
Dimension d = GetStringBoundingBox(str, fs);
Point p = GetAlignedPosition(r, d, align);
if (str != STR_NULL) DrawString(r.left, r.right, p.y, str, colour, align, fs);
if (str != STR_NULL) DrawString(r.left, r.right, p.y, str, colour, align, false, fs);
}
/**

Loading…
Cancel
Save