#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 ;
}
}