Fix bug in display of logos
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 1 Feb 2010 13:50:01 +0000 (14:50 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 4 Feb 2010 22:17:21 +0000 (23:17 +0100)
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

index 81d5d03..0742e89 100644 (file)
@@ -2005,6 +2005,8 @@ InitDrawingSizes(BoardSize boardSize, int flags)
     blackRect.right = blackRect.left + boardWidth/2 - 1;\r
     blackRect.top = whiteRect.top;\r
     blackRect.bottom = whiteRect.bottom;\r
+\r
+    logoHeight = 0; // [HGM] logo: suppress logo after change to tiny layout!\r
   }\r
 \r
   messageRect.left = OUTER_MARGIN + MESSAGE_LINE_LEFTMARGIN;\r