projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8c8feab
)
Fix bug in resize trigger
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 6 Oct 2012 18:10:18 +0000 (20:10 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 21 Oct 2012 09:28:17 +0000 (11:28 +0200)
Even if the square size does not change, the window has to be shrunk
back to fit the board.
xboard.c
patch
|
blob
|
history
diff --git
a/xboard.c
b/xboard.c
index
4d8b3f2
..
54f9953
100644
(file)
--- 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;