From 25c2c7c7ffc46f0460887e27269715b353ae56ac Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 25 Jun 2013 20:39:03 +0000 Subject: [PATCH] (svn r25468) -Fix-ish: the min/max of the close box were so small the glyph wouldn't even fit between them --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget.cpp b/src/widget.cpp index ac7b9bc02c..beaa808ed5 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); } /**