From e260cc7f9b3b558ec91d94e4ce69e81f90c2e32f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 1 Feb 2010 14:50:01 +0100 Subject: [PATCH] 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(). --- winboard/winboard.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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; -- 1.7.0.4