diff options
author | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
commit | 8f0e68285b4eadd1780280d7e36b00ff80c20f67 (patch) | |
tree | bb7b4abc525aa4e79b1a40ebe21516d9c47244e1 /src/gfx.cpp | |
parent | a7d54cf9464f457f181f920a4edc34fcb97aac4f (diff) | |
download | openttd-8f0e68285b4eadd1780280d7e36b00ff80c20f67.tar.xz |
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index d5c4d5a75..66043eec4 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -5,9 +5,9 @@ #include "stdafx.h" #include "openttd.h" #include "functions.h" +#include "gfx.h" #include "spritecache.h" #include "string.h" -#include "gfx.h" #include "table/palettes.h" #include "table/sprites.h" #include "variables.h" @@ -514,16 +514,16 @@ uint DrawStringMultiLine(int x, int y, StringID str, int maxw, int maxh) } /** Return the string dimension in pixels. The height and width are returned - * in a single BoundingRect value. TINYFONT, BIGFONT modifiers are only + * in a single Dimension value. TINYFONT, BIGFONT modifiers are only * supported as the first character of the string. The returned dimensions * are therefore a rough estimation correct for all the current strings * but not every possible combination * @param str string to calculate pixel-width * @return string width and height in pixels */ -BoundingRect GetStringBoundingBox(const char *str) +Dimension GetStringBoundingBox(const char *str) { FontSize size = _cur_fontsize; - BoundingRect br; + Dimension br; int max_width; WChar c; |