// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_DATAOBJ
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
Init();
if ( m_bitmap.Ok() )
{
- m_pictHandle = wxMacCreatePicHandle( rBitmap ) ;
- m_pictCreated = true ;
+ m_pictHandle = m_bitmap.GetBitmapData()->GetPictHandle() ;
+ m_pictCreated = false ;
}
}
wxBitmapDataObjectBase::SetBitmap(rBitmap);
if ( m_bitmap.Ok() )
{
- m_pictHandle = wxMacCreatePicHandle( rBitmap ) ;
- m_pictCreated = true ;
+ m_pictHandle = m_bitmap.GetBitmapData()->GetPictHandle() ;
+ m_pictCreated = false ;
}
}
return m_bitmap.Ok();
}
+
+#endif
\ No newline at end of file