From 105e8b03f3e64b7f57d43c12911ba5d4f1094b77 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 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; -- 1.7.0.4