From: H.G. Muller Date: Mon, 1 Feb 2010 13:50:01 +0000 (+0100) Subject: Fix bug in display of logos X-Git-Tag: master-20100206~13 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=105e8b03f3e64b7f57d43c12911ba5d4f1094b77;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 81d5d03..0742e89 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2005,6 +2005,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;