#include "wx/icon.h"
#include "gdk/gdkprivate.h"
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h"
#include "gdk/gdkx.h" // GDK_DISPLAY
wxMask::~wxMask(void)
{
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
// do not delete the mask, gdk_imlib does it for you
#else
if (m_bitmap) gdk_bitmap_unref( m_bitmap );
int m_width;
int m_height;
int m_bpp;
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
GdkImlibImage *m_image;
#endif
wxPalette *m_palette;
m_height = 0;
m_bpp = 0;
m_palette = (wxPalette *) NULL;
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
m_image = (GdkImlibImage *) NULL;
#endif
}
wxBitmapRefData::~wxBitmapRefData(void)
{
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
if (m_image) gdk_imlib_kill_image( m_image );
#else
{
m_refData = new wxBitmapRefData();
-#ifndef USE_GDK_IMLIB
+#ifndef wxUSE_GDK_IMLIB
GdkBitmap *mask = NULL;
return;
}
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap)
{
return FALSE;
}
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap)
{
bool wxBitmap::LoadFile( const wxString &name, int WXUNUSED(type) )
{
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
UnRef();
m_refData = new wxBitmapRefData();
return;
}
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
DestroyImage();
return;
}
-#ifdef USE_GDK_IMLIB
+#ifdef wxUSE_GDK_IMLIB
if (!M_BMPDATA->m_image) RecreateImage();