fixing SetShape's bridging between RgnHandle and HiShapeRef

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-02-12 10:49:19 +00:00
parent 25071a1b57
commit 812e3c4742

View File

@@ -1789,7 +1789,7 @@ bool wxTopLevelWindowMac::SetShape(const wxRegion& region)
// Make a copy of the region
RgnHandle shapeRegion = NewRgn();
CopyRgn( (RgnHandle)region.GetWXHRGN(), shapeRegion );
HIShapeGetAsQDRgn( region.GetWXHRGN(), shapeRegion );
// Dispose of any shape region we may already have
RgnHandle oldRgn = (RgnHandle)GetWRefCon( (WindowRef)MacGetWindowRef() );