Alexandre Julliard : comdlg32: Fix icon drawing in the 3.1 file dialog.

Alexandre Julliard julliard at winehq.org
Wed Sep 30 10:56:07 CDT 2009


Module: wine
Branch: master
Commit: a6414c260c0f090ee8a67bc956d1def508bb7d49
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a6414c260c0f090ee8a67bc956d1def508bb7d49

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Sep 29 20:59:55 2009 +0200

comdlg32: Fix icon drawing in the 3.1 file dialog.

---

 dlls/comdlg32/filedlg31.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comdlg32/filedlg31.c b/dlls/comdlg32/filedlg31.c
index 3e43178..4fab38f 100644
--- a/dlls/comdlg32/filedlg31.c
+++ b/dlls/comdlg32/filedlg31.c
@@ -251,7 +251,7 @@ LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam,
 	    SetBkColor( lpdis->hDC, oldBk );
 	    SetTextColor( lpdis->hDC, oldText );
 	}
-	DrawIcon(lpdis->hDC, lpdis->rcItem.left, lpdis->rcItem.top, hFolder);
+	DrawIconEx( lpdis->hDC, lpdis->rcItem.left, lpdis->rcItem.top, hFolder, 16, 16, 0, 0, DI_NORMAL );
         HeapFree(GetProcessHeap(), 0, str);
 	return TRUE;
     }
@@ -285,7 +285,7 @@ LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam,
 	    SetBkColor( lpdis->hDC, oldBk );
 	    SetTextColor( lpdis->hDC, oldText );
 	}
-	DrawIcon(lpdis->hDC, lpdis->rcItem.left, lpdis->rcItem.top, hIcon);
+	DrawIconEx( lpdis->hDC, lpdis->rcItem.left, lpdis->rcItem.top, hIcon, 16, 16, 0, 0, DI_NORMAL );
         HeapFree(GetProcessHeap(), 0, str);
 	return TRUE;
     }




More information about the wine-cvs mailing list