* ImageList.cs: Don't set the format when changing the image.
authorJackson Harper <jackson@novell.com>
Mon, 26 Sep 2005 02:16:26 +0000 (02:16 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 26 Sep 2005 02:16:26 +0000 (02:16 -0000)
svn path=/trunk/mcs/; revision=50738

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageList.cs

index a4ee4fc74a14023cd53f6d7da4b1c6a7441f7b7d..e52fddce7bfbd29373e41cabbc8563c39dee88d3 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * ImageList.cs: Don't set the format when changing the image.
+
 2005-09-25  Jackson Harper  <jackson@ximian.com>
 
        * TreeView.cs: We can't just assume the node has a font. Use the
index 8b53f7eff8f8a1b0cbc61e47c25333d0d5a5c68d..b2ba2a5608d167eabbb4b5f268eb174752760c66 100644 (file)
@@ -120,6 +120,7 @@ namespace System.Windows.Forms {
 
                                width=owner.ImageSize.Width;
                                height=owner.ImageSize.Height;
+
                                switch(owner.color_depth) {
                                        case ColorDepth.Depth4Bit:      format=PixelFormat.Format4bppIndexed; break;
                                        case ColorDepth.Depth8Bit:      format=PixelFormat.Format8bppIndexed; break;
@@ -134,7 +135,7 @@ namespace System.Windows.Forms {
                                        Graphics        g;
                                        Bitmap          reformatted_image;
 
-                                       reformatted_image = new Bitmap(width, height, format);
+                                       reformatted_image = new Bitmap(width, height);
                                        g=Graphics.FromImage(reformatted_image);
 
                                        g.DrawImage(image, new Rectangle(0, 0, width, height), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);