enabled a patch for default settings in winboard
authorMark Ioli <chessknight>
Thu, 25 Jun 2009 06:07:23 +0000 (23:07 -0700)
committerArun Persaud <arun@nubati.net>
Thu, 25 Jun 2009 06:07:23 +0000 (23:07 -0700)
winboard/winboard.c

index c7fad66..813445b 100644 (file)
@@ -8115,14 +8115,12 @@ ConsoleWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
       wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
       SetWindowPlacement(hDlg, &wp);\r
     }\r
       wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
       SetWindowPlacement(hDlg, &wp);\r
     }\r
-#if 0 \r
-   // [HGM] Chessknight's change 2004-07-13\r
    else { /* Determine Defaults */\r
        WINDOWPLACEMENT wp;\r
        wpConsole.x = winWidth + 1;\r
        wpConsole.y = boardY;\r
    else { /* Determine Defaults */\r
        WINDOWPLACEMENT wp;\r
        wpConsole.x = winWidth + 1;\r
        wpConsole.y = boardY;\r
-       wpConsoleW = screenWidth -  winWidth;\r
-       wpConsoleH = winHeight;\r
+       wpConsole.width = screenWidth -  winWidth;\r
+       wpConsole.height = winHeight;\r
        EnsureOnScreen(&wpConsole.x, &wpConsole.y, 0, 0);\r
        wp.length = sizeof(WINDOWPLACEMENT);\r
        wp.flags = 0;\r
        EnsureOnScreen(&wpConsole.x, &wpConsole.y, 0, 0);\r
        wp.length = sizeof(WINDOWPLACEMENT);\r
        wp.flags = 0;\r
@@ -8134,7 +8132,6 @@ ConsoleWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
        wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
        SetWindowPlacement(hDlg, &wp);\r
     }\r
        wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
        SetWindowPlacement(hDlg, &wp);\r
     }\r
-#endif\r
     return FALSE;\r
 \r
   case WM_SETFOCUS:\r
     return FALSE;\r
 \r
   case WM_SETFOCUS:\r