mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
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 cccdac136f224985383f5702281873c1830dfa05)
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…
x
Reference in New Issue
Block a user