Commit c013e44b authored by Reece Dunn's avatar Reece Dunn Committed by Alexandre Julliard

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

parent 4d41bdd1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment