X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=d3b827f5801e28a26398578dc56e106953d7d3f6;hb=6a2d6f12088f0352f67165564871c56a92c37a2f;hp=0726adea920d0696f43218041e893d1999747c91;hpb=b49a6a0960d616764b326c89d54337b349f8519e;p=xboard.git diff --git a/xboard.c b/xboard.c index 0726ade..d3b827f 100644 --- a/xboard.c +++ b/xboard.c @@ -936,14 +936,17 @@ InitDrawingSizes (BoardSize boardSize, int flags) int i; static Dimension oldWidth, oldHeight; static VariantClass oldVariant; - static int oldMono = -1; + static int oldMono = -1, oldTwoBoards = 0; if(!formWidget) return; + if(oldTwoBoards && !twoBoards) PopDown(DummyDlg); + oldTwoBoards = twoBoards; + if(appData.overrideLineGap >= 0) lineGap = appData.overrideLineGap; boardWidth = lineGap + BOARD_WIDTH * (squareSize + lineGap); boardHeight = lineGap + BOARD_HEIGHT * (squareSize + lineGap); - +fprintf(debugFP, "BOARD %d x %d\n",boardWidth, boardHeight); if(boardWidth != oldWidth || boardHeight != oldHeight) { // do resizing stuff only if size actually changed oldWidth = boardWidth; oldHeight = boardHeight;