From 2d7982dfa608ef1f38610a30645b64c29e08103d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 9 Jul 2009 21:44:54 -0700 Subject: [PATCH] user selectable font in game list This makes the game list use the same (user selectable) font as the the move-history window. --- winboard/wgamelist.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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) "" ); -- 1.7.0.4