Mercurial > dwindows
diff win/dw.c @ 1822:8d231cab845d
Fixed the Windows toolbar code to actually work... had some leftovers
from a copy and paste that were clobbering the image list variables.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 26 Oct 2012 04:54:48 +0000 |
parents | ece7befa9f3d |
children | 10c59bb2c47f |
line wrap: on
line diff
--- a/win/dw.c Fri Oct 26 04:46:13 2012 +0000 +++ b/win/dw.c Fri Oct 26 04:54:48 2012 +0000 @@ -6652,9 +6652,7 @@ if(hbitmap) { GetObject(hbitmap, sizeof(BITMAP), &bmi); - imlist = ImageList_Create(bmi.bmWidth, bmi.bmHeight, ILC_COLOR32, 1, 0); ImageList_Replace(imlist, 0, hbitmap, NULL); - dimlist = ImageList_Create(bmi.bmWidth, bmi.bmHeight, ILC_COLOR32, 1, 0); _to_grayscale(hbitmap, bmi.bmWidth, bmi.bmHeight); ImageList_Replace(dimlist, 0, hbitmap, NULL); DeleteObject(hbitmap); @@ -6665,9 +6663,7 @@ GetIconInfo(icon, &iconinfo); GetObject(iconinfo.hbmColor, sizeof(BITMAP), &bmi); - imlist = ImageList_Create(bmi.bmWidth, bmi.bmHeight, ILC_COLOR32 | ILC_MASK, 1, 0); ImageList_ReplaceIcon(imlist, 0, icon); - dimlist = ImageList_Create(bmi.bmWidth, bmi.bmHeight, ILC_COLOR32 | ILC_MASK, 1, 0); _to_grayscale(iconinfo.hbmColor, bmi.bmWidth, bmi.bmHeight); ImageList_Replace(dimlist, 0, iconinfo.hbmColor, iconinfo.hbmMask); DeleteObject(iconinfo.hbmColor);