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)
committerArun Persaud <arun@nubati.net>
Sat, 6 Feb 2010 05:21:32 +0000 (21:21 -0800)
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 a7705c4..0e3fbe2 100644 (file)
@@ -3295,6 +3295,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