changeset 20508:c86d0d0959d6 draft

(svn r25468) -Fix-ish: the min/max of the close box were so small the glyph wouldn't even fit between them
author rubidium <rubidium@openttd.org>
date Tue, 25 Jun 2013 20:39:03 +0000
parents 7eb22bed0a98
children 7127ef71af00
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -513,7 +513,7 @@
 {
 	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);
 }
 
 /**