From: H.G. Muller Date: Sun, 21 Oct 2012 08:14:24 +0000 (+0200) Subject: Reserve more space for button bar X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=82fbd7edccd47ef9e246d6437076dcbe181491d0;p=xboard.git Reserve more space for button bar In some board sizes the button bar was wider than the code guessed, so the window width would be determined by the message + buttons row rather than the board. --- diff --git a/dialogs.c b/dialogs.c index d142751..5f25c5a 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2096,7 +2096,7 @@ BoardPopUp (int squareSize, int lineGap, void *clockFontThingy) mainOptions[W_BOARD].max = mainOptions[W_SMALL].max = size; // board size mainOptions[W_SMALL].max = size - 2; // board title (subtract border!) mainOptions[W_BLACK].max = mainOptions[W_WHITE].max = size/2-3; // clock width - mainOptions[W_MESSG].max = appData.showButtonBar ? size-130 : size-2; // message + mainOptions[W_MESSG].max = appData.showButtonBar ? size-135 : size-2; // message mainOptions[W_MENU].max = size-40; // menu bar mainOptions[W_TITLE].type = appData.titleInWindow ? Label : -1 ; if(logo && logo <= size/4) { // Activate logos