From: Stefan Csomor Date: Sat, 30 Sep 2006 16:34:38 +0000 (+0000) Subject: invert clockwise flag correctly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a798c64c4f5d3b0b29a32a99fc8bd21259bdc425 invert clockwise flag correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/graphics.cpp b/src/mac/carbon/graphics.cpp index d71dfae32b..8b13f10247 100755 --- a/src/mac/carbon/graphics.cpp +++ b/src/mac/carbon/graphics.cpp @@ -138,7 +138,8 @@ void wxMacCoreGraphicsPath::AddCircle( wxDouble x, wxDouble y , wxDouble r ) // adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle void wxMacCoreGraphicsPath::AddArc( wxDouble x, wxDouble y, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise ) { - CGPathAddArc( m_path, NULL , x, y, r, startAngle, endAngle, clockwise); + // inverse direction as we the 'normal' state is a y axis pointing down, ie mirrored to the standard core graphics setup + CGPathAddArc( m_path, NULL , x, y, r, startAngle, endAngle, !clockwise); } void wxMacCoreGraphicsPath::AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r )