diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-06-12 19:13:22 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-06-12 22:30:38 +0200 |
commit | 418e0ea85f69196845c16193954dedee33191cb5 (patch) | |
tree | cd4ad1d4035142bb086e83f4ed95063dc30cb786 /src/gfx_func.h | |
parent | 8dd846bad42eebc9bf37d62d635b9c3f19e72016 (diff) | |
download | openttd-418e0ea85f69196845c16193954dedee33191cb5.tar.xz |
Codechange: Use dynamic string list for contents of land info window.
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 6363a699d..1d138f3d5 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -106,6 +106,7 @@ void GfxDrawLine(int left, int top, int right, int bottom, int colour, int width 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(const std::string &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); |