diff options
author | yexo <yexo@openttd.org> | 2012-01-12 19:11:51 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2012-01-12 19:11:51 +0000 |
commit | b1a830491aa01218cf0ec699269bd5d6a107f6f8 (patch) | |
tree | 8d7a388597837627e9bba12460d25777fac50885 /src/gfx_func.h | |
parent | 1ea634fcba9a2a03b0cfe07c05d307ee0e0152c6 (diff) | |
download | openttd-b1a830491aa01218cf0ec699269bd5d6a107f6f8.tar.xz |
(svn r23791) -Fix [FS#4960]: resize text panel for parameter description if it doesn't fit in 4 lines.
If you resize the window so it's smaller than default the text might still not fit
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 544c6174e..49d2d35a3 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -125,6 +125,7 @@ Dimension GetStringBoundingBox(StringID strid); uint32 FormatStringLinebreaks(char *str, const char *last, int maxw, FontSize start_fontsize = FS_NORMAL); int GetStringHeight(StringID str, int maxw); Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion); +Dimension GetStringMultiLineBoundingBox(const char *str, const Dimension &suggestion); void LoadStringWidthTable(bool monospace = false); void DrawDirtyBlocks(); |