Changeset - r20453:e1cd3a0924f0
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-06-25 20:39:03
rubidium@openttd.org
(svn r25468) -Fix-ish: the min/max of the close box were so small the glyph wouldn't even fit between them
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -510,13 +510,13 @@ static inline void DrawResizeBox(const R
 
 * @param str    Cross to draw (#STR_BLACK_CROSS or #STR_SILVER_CROSS).
 
 */
 
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);
 
}
 

	
 
/**
 
 * Draw a caption bar.
 
 * @param r      Rectangle of the bar.
 
 * @param colour Colour of the window.
0 comments (0 inline, 0 general)