X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=d3b827f5801e28a26398578dc56e106953d7d3f6;hb=2ad3ca1ba84d14592ebcee541d4c27eb505d0784;hp=7f1d394a5d80cab14adb7407dd2f640e90270da0;hpb=9d455a7f4ce66cc25d540d4dc5a65fdb1895cc2e;p=xboard.git diff --git a/xboard.c b/xboard.c index 7f1d394..d3b827f 100644 --- a/xboard.c +++ b/xboard.c @@ -936,14 +936,17 @@ InitDrawingSizes (BoardSize boardSize, int flags) int i; static Dimension oldWidth, oldHeight; static VariantClass oldVariant; - static int oldMono = -1; + static int oldMono = -1, oldTwoBoards = 0; if(!formWidget) return; + if(oldTwoBoards && !twoBoards) PopDown(DummyDlg); + oldTwoBoards = twoBoards; + 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; @@ -1193,6 +1196,11 @@ main (int argc, char **argv) programName++; #ifdef ENABLE_NLS + XtSetLanguageProc(NULL, NULL, NULL); + if (appData.debugMode) { + fprintf(debugFP, "locale = %s\n", setlocale(LC_ALL, NULL)); + } + bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif @@ -1256,12 +1264,6 @@ main (int argc, char **argv) XtAppInitialize(&appContext, "XBoard", shellOptions, XtNumber(shellOptions), &argc, argv, xboardResources, NULL, 0); -#ifdef ENABLE_NLS - XtSetLanguageProc(NULL, NULL, NULL); - if (appData.debugMode) { - fprintf(debugFP, "locale = %s\n", setlocale(LC_ALL, NULL)); - } -#endif XtGetApplicationResources(shellWidget, (XtPointer) &appData, clientResources, XtNumber(clientResources),