projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1dd3948
)
Remove debug printf
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 15 Apr 2012 09:12:02 +0000 (11:12 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 15 Apr 2012 09:12:02 +0000 (11:12 +0200)
xboard.c
patch
|
blob
|
history
diff --git
a/xboard.c
b/xboard.c
index
cf6beec
..
a862022
100644
(file)
--- a/
xboard.c
+++ b/
xboard.c
@@
-941,7
+941,7
@@
InitDrawingSizes (BoardSize boardSize, int flags)
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;