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_func.h | |
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_func.h')
-rw-r--r-- | src/gfx_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index aa18f3f70..709fc2cc9 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -123,6 +123,7 @@ void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3) Dimension GetStringBoundingBox(const char *str, FontSize start_fontsize = FS_NORMAL); Dimension GetStringBoundingBox(StringID strid); +int GetStringHeight(const char *str, int maxw, FontSize fontsize = FS_NORMAL); int GetStringHeight(StringID str, int maxw); int GetStringLineCount(StringID str, int maxw); Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion); |