From 6998fbf71de9aaa153670b4685d08888b94d96b3 Mon Sep 17 00:00:00 2001 From: PeterN Date: Tue, 9 May 2023 18:23:37 +0100 Subject: [PATCH] Fix: WWT_TEXT with SetTextStyle did not work. (#10797) FontSize was passed to incorrect parameter of DrawString function. --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget.cpp b/src/widget.cpp index 1e013a6d44..debfd79e88 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -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); } /**