Fix transparent circle printing
DrawEllipse seems to work fine using transparent bg for all DCs except
printing (which is the only one we use now) Use two arcs to draw a
transparent fill for the circle instead as a workaround until we
implement Cairo printing
Fixes https://gitlab.com/kicad/code/kicad/issues/10431
(cherry picked from commit cccdac136f
)
This commit is contained in:
parent
93229c37bb
commit
de006fc010
|
@ -514,7 +514,11 @@ void GRCircle( EDA_RECT* ClipBox, wxDC* DC, int xc, int yc, int r, int width, co
|
||||||
|
|
||||||
GRSetBrush( DC, Color, NOT_FILLED );
|
GRSetBrush( DC, Color, NOT_FILLED );
|
||||||
GRSetColorPen( DC, Color, width );
|
GRSetColorPen( DC, Color, width );
|
||||||
DC->DrawEllipse( xc - r, yc - r, r + r, r + r );
|
|
||||||
|
// Draw two arcs here to make a circle. Unfortunately, the printerDC doesn't handle
|
||||||
|
// transparent brushes when used with circles. It does work for for arcs, however
|
||||||
|
DC->DrawArc(xc + r, yc, xc - r, yc, xc, yc);
|
||||||
|
DC->DrawArc(xc - r, yc, xc + r, yc, xc, yc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue