From: H.G. Muller Date: Fri, 10 Jul 2009 04:44:54 +0000 (-0700) Subject: user selectable font in game list X-Git-Tag: v4.4.0.beta1~40 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=2d7982dfa608ef1f38610a30645b64c29e08103d user selectable font in game list This makes the game list use the same (user selectable) font as the the move-history window. --- diff --git a/winboard/wgamelist.c b/winboard/wgamelist.c index 3c13ae6..06a9f7f 100644 --- a/winboard/wgamelist.c +++ b/winboard/wgamelist.c @@ -41,6 +41,8 @@ #include "wsnap.h" #include "wgamelist.h" +extern BoardSize boardSize; + /* Module globals */ HWND gameListDialog = NULL; BOOLEAN gameListUp = FALSE; @@ -224,6 +226,9 @@ GameListDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) /* Initialize the dialog items */ hwndText = GetDlgItem(hDlg, OPT_TagsText); + /* Set font */ + SendDlgItemMessage( hDlg, OPT_GameListText, WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf, MAKELPARAM(TRUE, 0 )); + count = GameListToListBox( hDlg, gameListDialog ? TRUE : FALSE, NULL, &stats ); SendDlgItemMessage( hDlg, IDC_GameListFilter, WM_SETTEXT, 0, (LPARAM) "" );