]> git.saurik.com Git - wxWidgets.git/commitdiff
Reenable inversion code again.
authorRobert Roebling <robert@roebling.de>
Thu, 24 Aug 2006 09:35:06 +0000 (09:35 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 24 Aug 2006 09:35:06 +0000 (09:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/bitmap.cpp

index d6d039b893809f01c8e159bd2b578980cb6b026c..69fe0377df873b5ad964ea898feb864f81207c03 100644 (file)
@@ -644,7 +644,6 @@ wxImage wxBitmap::ConvertToImage() const
     {
         GdkPixmap* pixmap = GetPixmap();
         GdkPixmap* pixmap_invert = NULL;
-#if 0
         if (GetDepth() == 1)
         {
             // mono bitmaps are inverted
@@ -655,7 +654,6 @@ wxImage wxBitmap::ConvertToImage() const
             g_object_unref(gc);
             pixmap = pixmap_invert;
         }
-#endif
         // create a pixbuf which shares data with the wxImage
         GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data(
             data, GDK_COLORSPACE_RGB, false, 8, w, h, 3 * w, NULL, NULL);