comdlg32: Set background to transparent for font dialog sample text.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50034
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jeff Smith 2020-10-21 00:49:33 -05:00 committed by Alexandre Julliard
parent 9668d44f4d
commit 4273004e65
1 changed files with 1 additions and 0 deletions

View File

@ -1186,6 +1186,7 @@ static LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam, const CHOOSE
/* Draw the sample text itself */
hOrigFont = SelectObject( hdc, CreateFontIndirectW( &lf ) );
SetTextColor( hdc, lpcf->rgbColors );
SetBkMode( hdc, TRANSPARENT );
DrawTextW( hdc,
sample_lang_text[CHARSET_ORDER[lpcf->lpLogFont->lfCharSet]],