{
m_refData = new wxRegionRefData;
+#ifndef __LP64__
+ // TODO : any APIs ?
// OS X somehow does not collect the region invisibly as before, so sometimes things
// get drawn on screen instead of just being combined into a region, therefore we allocate a temp gworld now
::SetGWorld( oldWorld, oldGDHandle );
}
+#endif
}
wxRegion::~wxRegion()
}
else
{
- RegionToRectsUPP proc = NewRegionToRectsUPP( wxMacRegionToRectsCounterCallback );
+ RegionToRectsUPP proc =
+#ifdef __MACH__
+ (RegionToRectsUPP) wxMacRegionToRectsCounterCallback;
+#else
+ NewRegionToRectsUPP( wxMacRegionToRectsCounterCallback );
+#endif
OSStatus err = noErr;
err = QDRegionToRects (OTHER_M_REGION( region ) , kQDParseRegionFromTopLeft, proc, (void*)&m_numRects);
if (err == noErr)
{
+#ifndef __MACH__
DisposeRegionToRectsUPP (proc);
- proc = NewRegionToRectsUPP (wxMacRegionToRectsSetterCallback);
+#endif
+ proc =
+#ifdef __MACH__
+ (RegionToRectsUPP) wxMacRegionToRectsSetterCallback;
+#else
+ NewRegionToRectsUPP (wxMacRegionToRectsSetterCallback);
+#endif
m_rects = new wxRect[m_numRects];
RegionToRectsCallbackData data ;
data.m_rects = m_rects ;
m_numRects = 0;
}
+#ifndef __MACH__
DisposeRegionToRectsUPP( proc );
+#endif
}
}