+ if (m_brush.GetStyle() != wxTRANSPARENT)
+ {
+ if ((m_brush.GetStyle() == wxSTIPPLE_MASK_OPAQUE) && (m_brush.GetStipple()->GetMask()))
+ {
+ XSetTSOrigin( (Display*) m_display, (GC) m_textGC,
+ m_deviceOriginX % m_brush.GetStipple()->GetWidth(),
+ m_deviceOriginY % m_brush.GetStipple()->GetHeight() );
+
+ XFillArc( (Display*) m_display, (Window) m_window,
+ (GC) m_brushGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+
+ XSetTSOrigin( (Display*) m_display, (GC) m_textGC, 0, 0 );
+ } else
+ if (IS_15_PIX_HATCH(m_brush.GetStyle()))
+ {
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC,
+ m_deviceOriginX % 15, m_deviceOriginY % 15 );
+
+ XFillArc( (Display*) m_display, (Window) m_window,
+ (GC) m_brushGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC, 0, 0 );
+ } else
+ if (IS_16_PIX_HATCH(m_brush.GetStyle()))
+ {
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC,
+ m_deviceOriginX % 16, m_deviceOriginY % 16 );
+
+ XFillArc( (Display*) m_display, (Window) m_window,
+ (GC) m_brushGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC, 0, 0 );
+ } else
+ if (m_brush.GetStyle() == wxSTIPPLE)
+ {
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC,
+ m_deviceOriginX % m_brush.GetStipple()->GetWidth(),
+ m_deviceOriginY % m_brush.GetStipple()->GetHeight() );
+
+ XFillArc( (Display*) m_display, (Window) m_window,
+ (GC) m_brushGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+
+ XSetTSOrigin( (Display*) m_display, (GC) m_brushGC, 0, 0 );
+ }
+ else
+ {
+ XFillArc( (Display*) m_display, (Window) m_window,
+ (GC) m_brushGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+ }
+ }
+
+ if (m_pen.GetStyle() != wxTRANSPARENT)
+ {
+ XDrawArc( (Display*) m_display, (Window) m_window,
+ (GC) m_penGC, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
+
+ XDrawLine( (Display*) m_display, (Window) m_window,
+ (GC) m_penGC, xx1, yy1, xxc, yyc );
+
+ XDrawLine( (Display*) m_display, (Window) m_window,
+ (GC) m_penGC, xxc, yyc, xx2, yy2 );
+ }