X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b75dd496d2f18fd01b4f889115bd8dec29d13a74..aaa37c0d232074ca87df16f7c1f9ce21a18979b5:/src/gtk/bitmap.cpp diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 33b1a1f286..8a6ca2ccc7 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -16,9 +16,9 @@ #include "wx/filefn.h" #include "wx/image.h" -#include "gdk/gdk.h" -#include "gdk/gdkprivate.h" -#include "gdk/gdkx.h" +#include +#include +#include //----------------------------------------------------------------------------- // wxMask @@ -33,22 +33,26 @@ wxMask::wxMask() wxMask::wxMask( const wxBitmap& bitmap, const wxColour& colour ) { + m_bitmap = (GdkBitmap *) NULL; Create( bitmap, colour ); } wxMask::wxMask( const wxBitmap& bitmap, int paletteIndex ) { + m_bitmap = (GdkBitmap *) NULL; Create( bitmap, paletteIndex ); } wxMask::wxMask( const wxBitmap& bitmap ) { + m_bitmap = (GdkBitmap *) NULL; Create( bitmap ); } wxMask::~wxMask() { - if (m_bitmap) gdk_bitmap_unref( m_bitmap ); + if (m_bitmap) + gdk_bitmap_unref( m_bitmap ); } bool wxMask::Create( const wxBitmap& WXUNUSED(bitmap),