Changeset - r27293:c7253ee79605
[Not reviewed]
master
0 1 0
PeterN - 13 months ago 2023-05-09 17:23:37
peter1138@openttd.org
Fix: WWT_TEXT with SetTextStyle did not work. (#10797)

FontSize was passed to incorrect parameter of DrawString function.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -510,7 +510,7 @@ static inline void DrawText(const Rect &
 
{
 
	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);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)