#include "wx/defs.h"
-#include "wx/palette.h"
#include "wx/bitmap.h"
+#include "wx/palette.h"
#include "wx/icon.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include <gdk/gdkrgb.h>
#endif // GTK+ 2.0/1.2
-#include <math.h>
+#include "wx/math.h"
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
GdkGC *gc,
// create the pixmap on the fly if we use Pixbuf representation:
if (HasPixbuf() && !HasPixmap())
{
+ delete M_BMPDATA->m_mask;
+ M_BMPDATA->m_mask = new wxMask();
gdk_pixbuf_render_pixmap_and_mask(M_BMPDATA->m_pixbuf,
&M_BMPDATA->m_pixmap,
- NULL /*mask*/,
+ &M_BMPDATA->m_mask->m_bitmap,
128 /*threshold*/);
}
#endif // __WXGTK20__