winefile: In the Options > Font menu handler, initially select the current font.

This commit is contained in:
Reece Dunn 2011-02-08 19:03:25 +00:00 committed by Alexandre Julliard
parent 4d41bdd107
commit c013e44b1e
1 changed files with 4 additions and 1 deletions

View File

@ -263,11 +263,14 @@ static inline void choose_font(HWND hwnd)
LOGFONTW lFont;
HDC hdc = GetDC(hwnd);
GetObjectW(Globals.hfont, sizeof(LOGFONTW), &lFont);
chFont.lStructSize = sizeof(CHOOSEFONTW);
chFont.hwndOwner = hwnd;
chFont.hDC = NULL;
chFont.lpLogFont = &lFont;
chFont.Flags = CF_SCREENFONTS | CF_FORCEFONTEXIST | CF_LIMITSIZE | CF_NOSCRIPTSEL;
chFont.Flags = CF_SCREENFONTS | CF_FORCEFONTEXIST | CF_LIMITSIZE | CF_NOSCRIPTSEL | CF_INITTOLOGFONTSTRUCT;
chFont.rgbColors = RGB(0,0,0);
chFont.lCustData = 0;
chFont.lpfnHook = NULL;