X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=573db11ebfd072b6346cdc1730333921969b44fc;hb=6ca807f73dc2b01a2e36161775ef880c3b448c0d;hp=e269958d6d7f0deab9b6ffdc021e987a89b3daff;hpb=6bead4fda35db0cb9ec61309ee7cd9c99bb53475;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index e269958..573db11 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1020,8 +1020,6 @@ main (int argc, char **argv) programName, appData.boardSize); exit(2); } - if(BOARD_WIDTH > 8) - squareSize = (squareSize*8 + BOARD_WIDTH/2)/BOARD_WIDTH; // scale height if (i < 7) { /* Find some defaults; use the nearest known size */ SizeDefaults *szd, *nearest; @@ -1073,6 +1071,11 @@ main (int argc, char **argv) tinyLayout = szd->tinyLayout; // [HGM] font: use defaults from settings file if available and not overruled } + if(BOARD_WIDTH != 8) { + squareSize = (squareSize*8 + BOARD_WIDTH/2)/BOARD_WIDTH; // keep width the same + lineGap = (squareSize < 37 ? 1 : squareSize < 59 ? 2 : squareSize < 116 ? 3 : 4); +printf("squareSize=%d lineGap=%d\n",squareSize,lineGap); + } defaultLineGap = lineGap; if(appData.overrideLineGap >= 0) lineGap = appData.overrideLineGap;