comdlg32-colordlg fix bgcolor

Ivan Sinitsin ivan at etersoft.ru
Wed Jan 31 07:39:08 CST 2007


The patch corrects background color of a dialogue window " Choose color " at 
copying a triangular marker, the user colors and the predetermined colors. 
Earlier the background about these elements was more dark than the basic 
background of a window.

Changelog:
This patch set the right bgcolor of then dialogue window "Choose color".



comdlg32-colordlg-bgcolor.patch
---------------------------------------------------------------------------------------------------------------
Index: dlls/comdlg32/colordlg.c
===================================================================
RCS file: /home/wine/wine/dlls/comdlg32/colordlg.c,v
retrieving revision 1.4
diff -u -p -u -r1.4 colordlg.c
--- dlls/comdlg32/colordlg.c    23 Oct 2006 15:07:37 -0000      1.4
+++ dlls/comdlg32/colordlg.c    31 Jan 2007 12:40:05 -0000
@@ -922,7 +922,7 @@ static LONG CC_WMInitDialog( HWND hDlg, 
    SetDlgItemInt(hDlg, 706, r, TRUE);
    SetDlgItemInt(hDlg, 707, g, TRUE);
    SetDlgItemInt(hDlg, 708, b, TRUE);
-
+   SetClassLongPtrW( hwnd, GCLP_HBRBACKGROUND, (LONG_PTR) 
GetSysColorBrush(COLOR_BTNFACE));
    CC_PaintCross(hDlg, lpp->h, lpp->s);
    CC_PaintTriangle(hDlg, lpp->l);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comdlg32-colordlg-bgcolor.patch
Type: text/x-diff
Size: 676 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070131/de57383e/comdlg32-colordlg-bgcolor.bin


More information about the wine-patches mailing list