summaryrefslogtreecommitdiff
path: root/genworld_gui.c
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 /genworld_gui.c
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 'genworld_gui.c')
-rw-r--r--genworld_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/genworld_gui.c b/genworld_gui.c
index 2a3870c51..5edd2be09 100644
--- a/genworld_gui.c
+++ b/genworld_gui.c
@@ -304,7 +304,7 @@ void GenerateLandscapeWndProc(Window *w, WindowEvent *e)
DrawString( 12, 91, STR_HEIGHTMAP_NAME, 0x10);
SetDParam(0, _heightmap_str);
- DrawStringTruncated(114, 91, STR_ORANGE, 0x10, 326 - 114 - GetStringWidth(buffer) - 5);
+ DrawStringTruncated(114, 91, STR_ORANGE, 0x10, 326 - 114 - GetStringBoundingBox(buffer).width - 5);
/* TODO -- Remove next 2 lines if 32 widget limit is removed */
DrawFrameRect(114, 196, 219, 207, 12, 0);