Disabled masked bitmaps under GTK 2.0 until I know
why they crash. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,10 +33,7 @@
|
|||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
#include <gdk/gdkimage.h>
|
#include <gdk/gdkimage.h>
|
||||||
#else // GTK+ 1.2
|
#else // GTK+ 1.2
|
||||||
// VZ: is this still needed? seems to compile fine without it...
|
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
#include <gdk/gdkrgb.h>
|
#include <gdk/gdkrgb.h>
|
||||||
#endif
|
|
||||||
#endif // GTK+ 2.0/1.2
|
#endif // GTK+ 2.0/1.2
|
||||||
|
|
||||||
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
|
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
|
||||||
|
@@ -1011,6 +1011,10 @@ void wxWindowDC::DoDrawBitmap( const wxBitmap &bitmap,
|
|||||||
use_bitmap = bitmap;
|
use_bitmap = bitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
useMask = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* apply mask if any */
|
/* apply mask if any */
|
||||||
GdkBitmap *mask = (GdkBitmap *) NULL;
|
GdkBitmap *mask = (GdkBitmap *) NULL;
|
||||||
if (use_bitmap.GetMask()) mask = use_bitmap.GetMask()->GetBitmap();
|
if (use_bitmap.GetMask()) mask = use_bitmap.GetMask()->GetBitmap();
|
||||||
|
@@ -33,10 +33,7 @@
|
|||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
#include <gdk/gdkimage.h>
|
#include <gdk/gdkimage.h>
|
||||||
#else // GTK+ 1.2
|
#else // GTK+ 1.2
|
||||||
// VZ: is this still needed? seems to compile fine without it...
|
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
#include <gdk/gdkrgb.h>
|
#include <gdk/gdkrgb.h>
|
||||||
#endif
|
|
||||||
#endif // GTK+ 2.0/1.2
|
#endif // GTK+ 2.0/1.2
|
||||||
|
|
||||||
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
|
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
|
||||||
|
@@ -1011,6 +1011,10 @@ void wxWindowDC::DoDrawBitmap( const wxBitmap &bitmap,
|
|||||||
use_bitmap = bitmap;
|
use_bitmap = bitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
useMask = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* apply mask if any */
|
/* apply mask if any */
|
||||||
GdkBitmap *mask = (GdkBitmap *) NULL;
|
GdkBitmap *mask = (GdkBitmap *) NULL;
|
||||||
if (use_bitmap.GetMask()) mask = use_bitmap.GetMask()->GetBitmap();
|
if (use_bitmap.GetMask()) mask = use_bitmap.GetMask()->GetBitmap();
|
||||||
|
Reference in New Issue
Block a user