// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_DATAOBJ
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
#include "wx/log.h"
#include "wx/dataobj.h"
+#include "wx/dcmemory.h"
#include "wx/mstream.h"
#include "wx/image.h"
#include "wx/metafile.h"
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