HIShapeCreateEmpty doesn't exist prior to OSX 10.4, use

HIShapeCreateWithRect with an empty rectangle instead.

Also detabified.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-25 19:08:14 +00:00
parent 7e04993c66
commit 9985801dda

View File

@@ -347,7 +347,8 @@ void wxMacCoreGraphicsContext::Init()
m_mode = kCGPathFill;
m_macATSUIStyle = NULL;
m_releaseContext = false;
m_clipRgn.Set(HIShapeCreateEmpty());
HIRect r = CGRectMake(0,0,0,0);
m_clipRgn.Set(HIShapeCreateWithRect(&r));
}
wxMacCoreGraphicsContext::wxMacCoreGraphicsContext( CGContextRef cgcontext )
@@ -452,7 +453,8 @@ void wxMacCoreGraphicsContext::ResetClip()
}
else
{
m_clipRgn.Set(HIShapeCreateEmpty());
HIRect r = CGRectMake(0,0,0,0);
m_clipRgn.Set(HIShapeCreateWithRect(&r));
}
}