From 869b4ab0aebf0134fb7aed972abc0626dc5fa051 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Oct 2012 20:10:18 +0200 Subject: [PATCH] Fix bug in resize trigger Even if the square size does not change, the window has to be shrunk back to fit the board. --- xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4