Jeff Smith : comdlg32: Set background to transparent for font dialog sample text.
Alexandre Julliard
julliard at winehq.org
Fri Oct 23 14:27:19 CDT 2020
Module: wine
Branch: master
Commit: 4273004e65addb70b3f7d91e95eb3d5da31ffa3e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4273004e65addb70b3f7d91e95eb3d5da31ffa3e
Author: Jeff Smith <whydoubt at gmail.com>
Date: Wed Oct 21 00:49:33 2020 -0500
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comdlg32/fontdlg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c
index 69ea3f9ebf1..db2780e1218 100644
--- a/dlls/comdlg32/fontdlg.c
+++ b/dlls/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]],
More information about the wine-cvs
mailing list