summaryrefslogtreecommitdiff
path: root/openttd.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 /openttd.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 'openttd.h')
-rw-r--r--openttd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openttd.h b/openttd.h
index 6d53aa7b8..70c4cd446 100644
--- a/openttd.h
+++ b/openttd.h
@@ -12,6 +12,11 @@ typedef struct Rect {
int left,top,right,bottom;
} Rect;
+typedef struct BoundingRect {
+ int width;
+ int height;
+} BoundingRect;
+
typedef struct Point {
int x,y;
} Point;