From: H.G. Muller Date: Sat, 6 Oct 2012 18:10:18 +0000 (+0200) Subject: Fix bug in resize trigger X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=869b4ab0aebf0134fb7aed972abc0626dc5fa051;p=xboard.git Fix bug in resize trigger Even if the square size does not change, the window has to be shrunk back to fit the board. --- diff --git a/xboard.c b/xboard.c index 4d8b3f2..54f9953 100644 --- a/xboard.c +++ b/xboard.c @@ -1748,7 +1748,7 @@ ReSize (WindowPlacement *wp) NewSurfaces(); CreatePNGPieces(); // make newly scaled pieces InitDrawingSizes(0, 0); // creates grid etc. - } + } else ResizeBoardWindow(BOARD_WIDTH * (squareSize + lineGap) + lineGap, BOARD_HEIGHT * (squareSize + lineGap) + lineGap, 0); } static XtIntervalId delayedDragID = 0;