# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1351227288 0 # Node ID 8d231cab845d59cf786fa2d414f5c080b40e8aa3 # Parent 69f9aa1e1b1e812ba680864877466882fb698ad7 Fixed the Windows toolbar code to actually work... had some leftovers from a copy and paste that were clobbering the image list variables. diff -r 69f9aa1e1b1e -r 8d231cab845d win/dw.c --- 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);