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:
@@ -347,7 +347,8 @@ void wxMacCoreGraphicsContext::Init()
|
|||||||
m_mode = kCGPathFill;
|
m_mode = kCGPathFill;
|
||||||
m_macATSUIStyle = NULL;
|
m_macATSUIStyle = NULL;
|
||||||
m_releaseContext = false;
|
m_releaseContext = false;
|
||||||
m_clipRgn.Set(HIShapeCreateEmpty());
|
HIRect r = CGRectMake(0,0,0,0);
|
||||||
|
m_clipRgn.Set(HIShapeCreateWithRect(&r));
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMacCoreGraphicsContext::wxMacCoreGraphicsContext( CGContextRef cgcontext )
|
wxMacCoreGraphicsContext::wxMacCoreGraphicsContext( CGContextRef cgcontext )
|
||||||
@@ -452,7 +453,8 @@ void wxMacCoreGraphicsContext::ResetClip()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_clipRgn.Set(HIShapeCreateEmpty());
|
HIRect r = CGRectMake(0,0,0,0);
|
||||||
|
m_clipRgn.Set(HIShapeCreateWithRect(&r));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user