From c8ef276778854a1eec6bd6ec1f6377ef9b023189 Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Wed, 21 Oct 2020 00:49:33 -0500 Subject: [PATCH] [COMDLG32] Set background to transparent for font dialog sample text Import Wine commit wine-5.19-325-g4273004e65a: https://source.winehq.org/git/wine.git/commit/4273004e65addb70b3f7d91e95eb3d5da31ffa3e CORE-18588 --- dll/win32/comdlg32/fontdlg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/win32/comdlg32/fontdlg.c b/dll/win32/comdlg32/fontdlg.c index ecb6ce0e33a..279b91a11bf 100644 --- a/dll/win32/comdlg32/fontdlg.c +++ b/dll/win32/comdlg32/fontdlg.c @@ -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]],