- path.AddArc( 0, 0, h/2.0 , DegToRad(-sa) , DegToRad(-ea), sa > ea );
- m_graphicContext->DrawPath( path );
+ if ( m_brush.GetStyle() != wxTRANSPARENT )
+ {
+ wxGraphicsPath path = m_graphicContext->CreatePath();
+ path.MoveToPoint( 0, 0 );
+ path.AddArc( 0, 0, h/2.0 , DegToRad(-sa) , DegToRad(-ea), sa > ea );
+ path.AddLineToPoint( 0, 0 );
+ m_graphicContext->FillPath( path );
+
+ path = m_graphicContext->CreatePath();
+ path.AddArc( 0, 0, h/2.0 , DegToRad(-sa) , DegToRad(-ea), sa > ea );
+ m_graphicContext->StrokePath( path );
+ }
+ else
+ {
+ wxGraphicsPath path = m_graphicContext->CreatePath();
+ path.AddArc( 0, 0, h/2.0 , DegToRad(-sa) , DegToRad(-ea), sa > ea );
+ m_graphicContext->DrawPath( path );
+ }
+