#include "wx/image.h"
#include "wx/xpmdecod.h"
-#ifndef __UNIX__
- #define OBSOLETE_XPM_DATA_HANDLER
-#endif
-
extern "C"
{
#ifdef OBSOLETE_XPM_DATA_HANDLER
m_bitmapMask = NULL;
m_hBitmap = NULL ;
m_hPict = NULL ;
+ m_hIcon = NULL ;
m_bitmapType = kMacBitmapTypeUnknownType ;
}
}
}
break ;
+ case kMacBitmapTypeIcon :
+ if ( m_hIcon )
+ {
+ DisposeCIcon( m_hIcon ) ;
+ m_hIcon = NULL ;
+ }
+
default :
// unkown type ?
break ;
{
M_BITMAPDATA->m_bitmapType = kMacBitmapTypeGrafWorld ;
M_BITMAPDATA->m_hBitmap = bmp ;
- M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ;
+ M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ;
}
bool wxBitmap::LoadFile(const wxString& filename, long type)