X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=e7e4ca7fea6585780ebee1c491a6047af3d15c76;hb=e163486f1f5f391ca2ade9aa8be94b36acc16823;hp=e943a22a8f71361f9340374f761e98998ffbbb77;hpb=448a8a613868681c5505ea5c92ab28c60ec392d4;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index e943a22..e7e4ca7 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -836,8 +836,6 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) EngineOutputPopUp(); } - InitBackEnd2(); - /* Make the window visible; update its client area; and return "success" */ EnsureOnScreen(&wpMain.x, &wpMain.y, minX, minY); wp.length = sizeof(WINDOWPLACEMENT); @@ -850,6 +848,8 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) wp.rcNormalPosition.bottom = wpMain.y + wpMain.height; SetWindowPlacement(hwndMain, &wp); + InitBackEnd2(); // [HGM] moved until after all windows placed, to save correct position if fatal error on engine start + if(!appData.noGUI) SetWindowPos(hwndMain, alwaysOnTop ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);