]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/clipbrd.cpp
corrected GetDepth method and wrong disposal calls for pixmap
[wxWidgets.git] / src / mac / carbon / clipbrd.cpp
index 0d59db9a44abe7bbb5ca3196a600f9f8396a1f2a..0aa8806e032968e1adb57eee99f46ab964eb70e8 100644 (file)
 #include "wx/clipbrd.h"
 #include "wx/intl.h"
 
+#include "wx/mac/private.h"
+#ifndef __DARWIN__
+#include <Scrap.h>
+#endif
+
 #define wxUSE_DATAOBJ 1
 
 #include <string.h>
@@ -254,7 +259,7 @@ bool wxClipboard::AddData( wxDataObject *data )
               wxMetafileDataObject* metaFileDataObject =
                 (wxMetafileDataObject*) data;
               wxMetafile metaFile = metaFileDataObject->GetMetafile();
-                               PicHandle pict = metaFile.GetHMETAFILE() ;
+                               PicHandle pict = (PicHandle) metaFile.GetHMETAFILE() ;
                                HLock( (Handle) pict ) ;
       #if !TARGET_CARBON
                                err = PutScrap( GetHandleSize(  (Handle) pict ) , 'PICT' , *pict ) ;