bool originChanged;
DrawingSetup(gc, originChanged);
+ // If the pen is transparent pen we increase the size
+ // for better compatibility with other platforms.
+ if (m_pen.GetStyle() == wxPENSTYLE_TRANSPARENT)
+ {
+ ++ww;
+ ++hh;
+ }
+
gdk_draw_arc(m_gdkwindow, gc, true, xx, yy, ww, hh, 0, 360*64);
if (originChanged)
}
if (m_pen.GetStyle() != wxPENSTYLE_TRANSPARENT)
- gdk_draw_arc( m_gdkwindow, m_penGC, FALSE, xx, yy, ww, hh, 0, 360*64 );
+ gdk_draw_arc( m_gdkwindow, m_penGC, false, xx, yy, ww, hh, 0, 360*64 );
}
CalcBoundingBox( x, y );
int w = bitmap.GetWidth();
int h = bitmap.GetHeight();
- if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft)
- xx -= w;
-
CalcBoundingBox( x, y );
CalcBoundingBox( x + w, y + h );
int ww = XLOG2DEVREL(w);
int hh = YLOG2DEVREL(h);
+ if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft)
+ xx -= ww;
+
if (IsOutsideOfClippingRegion( xx,yy,ww,hh ))
return;