]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/bitmap.cpp
correct access for virtual
[wxWidgets.git] / src / gtk / bitmap.cpp
index 3eca0eb586775fe096bedeb994549061597e7d04..c5ebe0fabd2a0ef9cf4a7c0fd7da2b68a6f552b8 100644 (file)
@@ -641,6 +641,7 @@ wxImage wxBitmap::ConvertToImage() const
     {
         GdkPixmap* pixmap = GetPixmap();
         GdkPixmap* pixmap_invert = NULL;
+#if 0
         if (GetDepth() == 1)
         {
             // mono bitmaps are inverted
@@ -651,6 +652,7 @@ 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);