64bit builds had problems with full circles, as we can use 10.4+ only APIs, use new implementation, fixes #11471
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1138,9 +1138,12 @@ public :
|
|||||||
// appends a rectangle as a new closed subpath
|
// appends a rectangle as a new closed subpath
|
||||||
virtual void AddRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h );
|
virtual void AddRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h );
|
||||||
|
|
||||||
// appends an ellipsis as a new closed subpath fitting the passed rectangle
|
// appends a circle as a new closed subpath
|
||||||
virtual void AddCircle( wxDouble x, wxDouble y, wxDouble r );
|
virtual void AddCircle( wxDouble x, wxDouble y, wxDouble r );
|
||||||
|
|
||||||
|
// appends an ellipsis as a new closed subpath fitting the passed rectangle
|
||||||
|
virtual void AddEllipse( wxDouble x, wxDouble y, wxDouble w, wxDouble h);
|
||||||
|
|
||||||
// draws a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
|
// draws a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
|
||||||
virtual void AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r );
|
virtual void AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r );
|
||||||
|
|
||||||
@@ -1217,7 +1220,12 @@ void wxMacCoreGraphicsPathData::AddRectangle( wxDouble x, wxDouble y, wxDouble w
|
|||||||
|
|
||||||
void wxMacCoreGraphicsPathData::AddCircle( wxDouble x, wxDouble y , wxDouble r )
|
void wxMacCoreGraphicsPathData::AddCircle( wxDouble x, wxDouble y , wxDouble r )
|
||||||
{
|
{
|
||||||
CGPathAddArc( m_path , NULL , (CGFloat) x , (CGFloat) y , (CGFloat) r , (CGFloat) 0.0 , (CGFloat) (2 * M_PI) , true );
|
CGPathAddEllipseInRect( m_path, NULL, CGRectMake(x-r,y-r,2*r,2*r));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxMacCoreGraphicsPathData::AddEllipse( wxDouble x, wxDouble y, wxDouble w, wxDouble h )
|
||||||
|
{
|
||||||
|
CGPathAddEllipseInRect( m_path, NULL, CGRectMake(x,y,w,h));
|
||||||
}
|
}
|
||||||
|
|
||||||
// adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle
|
// adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle
|
||||||
|
Reference in New Issue
Block a user