From: H.G. Muller Date: Mon, 1 Feb 2010 13:50:01 +0000 (+0100) Subject: Fix bug in display of logos X-Git-Tag: v4.4.3.20100220~20 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e260cc7f9b3b558ec91d94e4ce69e81f90c2e32f;p=xboard.git Fix bug in display of logos The logo continued to be drawn after a boardSize change to a tinyLayout size, although there was no space reserved for it. Fixed by explicitly resetting logoHeight when no logo space is reserved in InitDrawingSizes(). --- diff --git a/winboard/winboard.c b/winboard/winboard.c index a7705c4..0e3fbe2 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -3295,6 +3295,8 @@ InitDrawingSizes(BoardSize boardSize, int flags) blackRect.right = blackRect.left + boardWidth/2 - 1; blackRect.top = whiteRect.top; blackRect.bottom = whiteRect.bottom; + + logoHeight = 0; // [HGM] logo: suppress logo after change to tiny layout! } messageRect.left = OUTER_MARGIN + MESSAGE_LINE_LEFTMARGIN;