[PATCH] winecfg: Paint text on About tab with the right background color.
Alex Henrie
alexhenrie24 at gmail.com
Sun Mar 26 22:26:16 CDT 2017
Fixes https://bugs.winehq.org/show_bug.cgi?id=23302
Looking at DEFWND_DefWinProc and DEFWND_ControlColor, it's clear that
WM_CTLCOLORSTATIC needs to call SetBkColor. Otherwise, the background
of the text on the control could be different from the background of
the rest of the control.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
programs/winecfg/about.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/winecfg/about.c b/programs/winecfg/about.c
index 09cc015157..a2b402230c 100644
--- a/programs/winecfg/about.c
+++ b/programs/winecfg/about.c
@@ -171,6 +171,7 @@ AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case IDC_ABT_PANEL_TEXT:
case IDC_ABT_LICENSE_TEXT:
case IDC_ABT_WEB_LINK:
+ SetBkColor((HDC)wParam, GetSysColor(COLOR_WINDOW));
return (INT_PTR)CreateSolidBrush(GetSysColor(COLOR_WINDOW));
}
break;
--
2.12.0
More information about the wine-patches
mailing list