changed font in engine output window v4.4.0.alpha8
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 28 Jun 2009 00:06:26 +0000 (17:06 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 28 Jun 2009 05:44:58 +0000 (22:44 -0700)
The engine-output window now uses the same font as the move-history window
(which was selectable in the "Options  -> Fonts..." menu, while the other
wasn't).

winboard/wengineo.c
winboard/winboard.rc
winboard/woptions.c

index ff7b3b1..d10f3d9 100644 (file)
@@ -78,6 +78,8 @@ extern HWND hwndMain;
 \r
 extern WindowPlacement wpEngineOutput;\r
 \r
+extern BoardSize boardSize;\r
+\r
 /* Module variables */\r
 #define H_MARGIN            2\r
 #define V_MARGIN            2\r
@@ -339,6 +341,10 @@ LRESULT CALLBACK EngineOutputProc( HWND hDlg, UINT message, WPARAM wParam, LPARA
 \r
             ResizeWindowControls( hDlg, windowMode );\r
 \r
+           /* Set font */\r
+           SendDlgItemMessage( engineOutputDialog, IDC_EngineMemo1, WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, MAKELPARAM(TRUE, 0 ));\r
+           SendDlgItemMessage( engineOutputDialog, IDC_EngineMemo2, WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, MAKELPARAM(TRUE, 0 ));\r
+\r
             SetEngineState( 0, STATE_IDLE, "" );\r
             SetEngineState( 1, STATE_IDLE, "" );\r
         }\r
index 09e27ba..1d61fd2 100644 (file)
@@ -727,7 +727,7 @@ BEGIN
     GROUPBOX        "All Board Sizes",IDC_STATIC,3,87,259,109\r
     CONTROL         "",OPT_SampleMoveHistoryFont,"RICHEDIT",ES_READONLY | \r
                     WS_DISABLED | WS_BORDER,67,170,140,20\r
-    LTEXT           "Move History",OPT_MessageFont6,13,175,50,10,NOT \r
+    LTEXT           "Move History, Engine Output",OPT_MessageFont6,13,171,50,20,NOT \r
                     WS_GROUP\r
 END\r
 \r
index 1e79b6d..578c318 100644 (file)
@@ -63,6 +63,7 @@ extern HWND hwndConsole;
 extern char *defaultTextAttribs[];
 extern HWND commentDialog;
 extern HWND moveHistoryDialog;
+extern HWND engineOutputDialog;
 extern char installDir[];
 extern HWND hCommPort;    /* currently open comm port */
 extern DCB dcb;
@@ -1634,7 +1635,17 @@ FontOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
        SendDlgItemMessage(moveHistoryDialog, IDC_MoveHistory,
          WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, 
          MAKELPARAM(TRUE, 0));
-       InvalidateRect(editTagsDialog, NULL, TRUE);
+        SendMessage( moveHistoryDialog, WM_INITDIALOG, 0, 0 );
+//     InvalidateRect(editTagsDialog, NULL, TRUE); // [HGM] this ws improperly cloned?
+      }
+
+      if( engineOutputDialog != NULL ) {
+       SendDlgItemMessage(engineOutputDialog, IDC_EngineMemo1,
+         WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, 
+         MAKELPARAM(TRUE, 0));
+       SendDlgItemMessage(engineOutputDialog, IDC_EngineMemo2,
+         WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, 
+         MAKELPARAM(TRUE, 0));
       }
 
       if (hwndConsole) {