[PATCH] Color passed as brush to FillRect

Gerard Patel gerard.patel at nerim.net
Sat Aug 18 11:37:07 CDT 2001


 ChangeLog:

	* dlls/commdlg/filedlg95.c
               Fix FillRect calls in FILEDLG95_LOOKIN_DrawItem
-------------- next part --------------
Index: dlls/commdlg/filedlg95.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg95.c,v
retrieving revision 1.60
diff -u -r1.60 filedlg95.c
--- dlls/commdlg/filedlg95.c	2001/08/03 18:11:49	1.60
+++ dlls/commdlg/filedlg95.c	2001/08/18 13:22:55
@@ -2011,13 +2011,13 @@
   {
     SetTextColor(pDIStruct->hDC,(0x00FFFFFF & ~(crText)));
     SetBkColor(pDIStruct->hDC,crHighLight);
-    FillRect(pDIStruct->hDC,&pDIStruct->rcItem,(HBRUSH)crHighLight);
+    FillRect(pDIStruct->hDC,&pDIStruct->rcItem,GetSysColorBrush(COLOR_HIGHLIGHT));
   }
   else
   {
     SetTextColor(pDIStruct->hDC,crText);
     SetBkColor(pDIStruct->hDC,crWin);
-    FillRect(pDIStruct->hDC,&pDIStruct->rcItem,(HBRUSH)crWin);
+    FillRect(pDIStruct->hDC,&pDIStruct->rcItem,GetSysColorBrush(COLOR_WINDOW));
   }
 
   /* Do not indent item if drawing in the edit of the combo */
-------------- next part --------------



More information about the wine-patches mailing list