// 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/image.h"
#include "wx/metafile.h"
#include "wx/mac/private.h"
+#ifndef __DARWIN__
#include <Scrap.h>
+#endif
// ----------------------------------------------------------------------------
// functions
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