summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-25 20:39:03 +0000
committerrubidium <rubidium@openttd.org>2013-06-25 20:39:03 +0000
commitc90dbe20186059eb20574cab442f792b449d16ba (patch)
tree7d5c45c740d6f8550a9848d38f7f80649e19619d /src/widget.cpp
parent899c4d85e4740de66b804896e35d177ab6d34d2c (diff)
downloadopenttd-c90dbe20186059eb20574cab442f792b449d16ba.tar.xz
(svn r25468) -Fix-ish: the min/max of the close box were so small the glyph wouldn't even fit between them
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index ac7b9bc02..beaa808ed 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -513,7 +513,7 @@ static inline void DrawCloseBox(const Rect &r, Colours colour, StringID str)
{
assert(str == STR_BLACK_CROSS || str == STR_SILVER_CROSS); // black or silver cross
DrawFrameRect(r.left, r.top, r.right, r.bottom, colour, FR_NONE);
- DrawString(r.left + WD_CLOSEBOX_LEFT, r.right - WD_CLOSEBOX_RIGHT, r.top + WD_CLOSEBOX_TOP, str, TC_FROMSTRING, SA_HOR_CENTER);
+ DrawString(r.left, r.right, r.top + WD_CLOSEBOX_TOP, str, TC_FROMSTRING, SA_HOR_CENTER);
}
/**