From 1f6043458c2677f3651618bc23f8b0a24598bffb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Dec 2007 23:30:28 +0000 Subject: (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. --- src/gfx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gfx.cpp') 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; -- cgit v1.2.3-70-g09d2