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
{
GdkPixmap* pixmap = GetPixmap();
GdkPixmap* pixmap_invert = NULL;
{
GdkPixmap* pixmap = GetPixmap();
GdkPixmap* pixmap_invert = NULL;
if (GetDepth() == 1)
{
// mono bitmaps are inverted
if (GetDepth() == 1)
{
// mono bitmaps are inverted
g_object_unref(gc);
pixmap = pixmap_invert;
}
g_object_unref(gc);
pixmap = pixmap_invert;
}
// 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);
// 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);