From: Stefan Csomor Date: Tue, 12 Feb 2008 10:49:19 +0000 (+0000) Subject: fixing SetShape's bridging between RgnHandle and HiShapeRef X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/812e3c4742e9a9eeede4fe095cff6515b8ef454c?ds=inline 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 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 99d2784dec..74d6b8140d 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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() );