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
This commit is contained in:
parent
2306d00c89
commit
cccdac136f
|
@ -511,7 +511,11 @@ void GRCircle( EDA_RECT* ClipBox, wxDC* DC, int xc, int yc, int r, int width, co
|
|||
|
||||
GRSetBrush( DC, Color, NOT_FILLED );
|
||||
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