From a24992eef4621e0f45993a38cc6770cdb631d2cc Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Thu, 15 Oct 2015 20:57:39 +0200 Subject: [PATCH 1/1] Base tinyLayout decision on total board width The decision whether to include system menu and use one-letter main menus is now taken based on the total board width, rather than the square size, to account for boards that do have other than 8 files. --- winboard/winboard.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 7db641b..971309b 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2353,6 +2353,10 @@ InitDrawingSizes(BoardSize boardSize, int flags) minorSize = 0; /* [HGM] Kludge to see if demagnified pieces need to be shifted */ border = appData.useBorder && appData.border[0] ? squareSize/2 : 0; + // [HGM] decide on tininess based on total board width rather than square size + tinyLayout = squareSize * (BOARD_WIDTH); + tinyLayout = tinyLayout < 35*8 ? 2 : tinyLayout < 43*8 ? 1 : 0; + if( appData.overrideLineGap >= 0 && appData.overrideLineGap <= 5 ) { lineGap = appData.overrideLineGap; } -- 1.7.0.4