diff options
author | frosch <frosch@openttd.org> | 2013-10-06 11:29:14 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-10-06 11:29:14 +0000 |
commit | dfa0e61f254eb1bdcfbc932ec2c6c38443f79c65 (patch) | |
tree | df3e310f24dda3e572f7ac867595f48eeeeac5f4 /src/gfx.cpp | |
parent | f26aad2e84f628e741fd267042913731b5637648 (diff) | |
download | openttd-dfa0e61f254eb1bdcfbc932ec2c6c38443f79c65.tar.xz |
(svn r25816) -Add [FS#5748]: Toggle button for wrapping lines in the textfile GUI (LordAro)
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; } |