changeset 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 69f9aa1e1b1e
children 9c77567c5b2d
files win/dw.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
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);