summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-09-16 13:20:14 +0000
committerDarkvater <darkvater@openttd.org>2006-09-16 13:20:14 +0000
commit3ccc87b376a5560e3933263dc0e684ddf1136236 (patch)
treecfe40a58aa6ed11051036a76e69dd295f0b05d31 /gfx.h
parentba3ae8e43d19e4553a8c753c66c6a199b28cc1e1 (diff)
downloadopenttd-3ccc87b376a5560e3933263dc0e684ddf1136236.tar.xz
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
box of the string. Therefore rename the function to GetStringBoundingRect() and have it return a BoundingRect type of width/height
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx.h b/gfx.h
index 8aa7a97e3..9c7f91012 100644
--- a/gfx.h
+++ b/gfx.h
@@ -67,7 +67,7 @@ void DrawStringRightAlignedUnderline(int x, int y, StringID str, uint16 color);
void GfxFillRect(int left, int top, int right, int bottom, int color);
void GfxDrawLine(int left, int top, int right, int bottom, int color);
-int GetStringWidth(const char *str);
+BoundingRect GetStringBoundingBox(const char *str);
void LoadStringWidthTable(void);
void DrawStringMultiCenter(int x, int y, StringID str, int maxw);
void DrawStringMultiLine(int x, int y, StringID str, int maxw);