diff options
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index 3fabf0b09..aa81f99f8 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -535,9 +535,9 @@ int DrawString(int left, int right, int top, StringID str, TextColour colour, St * @param maxw maximum string width * @return height of pixels of string when it is drawn */ -static int GetStringHeight(const char *str, int maxw) +int GetStringHeight(const char *str, int maxw, FontSize fontsize) { - Layouter layout(str, maxw); + Layouter layout(str, maxw, TC_FROMSTRING, fontsize); return layout.GetBounds().height; } |