mirror of https://github.com/OpenTTD/OpenTTD
Fix: WWT_TEXT with SetTextStyle did not work. (#10797)
FontSize was passed to incorrect parameter of DrawString function.pull/10772/head
parent
d68c4bbd2f
commit
6998fbf71d
|
@ -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…
Reference in New Issue