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:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user