Alexandre Julliard : shell32: Create a 32-bpp image list to get alpha blended icons.

Alexandre Julliard julliard at winehq.org
Mon Jun 14 13:01:15 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Jun 13 16:50:43 2010 +0200

shell32: Create a 32-bpp image list to get alpha blended icons.

---

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

diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c
index b0d4089..aabe89e 100644
--- a/dlls/shell32/control.c
+++ b/dlls/shell32/control.c
@@ -216,9 +216,9 @@ static BOOL Control_CreateListView (CPanel *panel)
 
     /* Create image lists for list view */
     panel->hImageListSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON),
-        GetSystemMetrics(SM_CYSMICON), ILC_MASK, 1, 1);
+        GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 | ILC_MASK, 1, 1);
     panel->hImageListLarge = ImageList_Create(GetSystemMetrics(SM_CXICON),
-        GetSystemMetrics(SM_CYICON), ILC_MASK, 1, 1);
+        GetSystemMetrics(SM_CYICON), ILC_COLOR32 | ILC_MASK, 1, 1);
 
     SendMessageW(panel->hWndListView, LVM_SETIMAGELIST, LVSIL_SMALL, (LPARAM)panel->hImageListSmall);
     SendMessageW(panel->hWndListView, LVM_SETIMAGELIST, LVSIL_NORMAL, (LPARAM)panel->hImageListLarge);




More information about the wine-cvs mailing list