From ba938d07881b247404ef71fb1f4d19ef29ecc99f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 23 Aug 2006 20:01:34 +0000 Subject: [PATCH] Comment out suspicious 1-bit bitmap conversion which happens to break wxAUI (its close button). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/bitmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 3eca0eb586..c5ebe0fabd 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -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); -- 2.45.2