Bug fixes in arc & textbox printing.

Also removal of the no-longer-used clipping code from GR*.
This commit is contained in:
Jeff Young
2022-01-31 20:00:47 +00:00
parent 25a7de730c
commit 60bcfd1bf1
25 changed files with 282 additions and 658 deletions
+3 -3
View File
@@ -149,14 +149,14 @@ void GRPrintText( wxDC* aDC, const VECTOR2I& aPos, const COLOR4D& aColor, const
[&]( const VECTOR2I& aPt1, const VECTOR2I& aPt2 )
{
if( fill_mode )
GRLine( nullptr, aDC, aPt1.x, aPt1.y, aPt2.x, aPt2.y, aWidth, aColor );
GRLine( aDC, aPt1, aPt2, aWidth, aColor );
else
GRCSegm( nullptr, aDC, aPt1.x, aPt1.y, aPt2.x, aPt2.y, aWidth, 0, aColor );
GRCSegm( aDC, aPt1, aPt2, aWidth, aColor );
},
// Polygon callback
[&]( const SHAPE_LINE_CHAIN& aPoly )
{
GRClosedPoly( nullptr, aDC, aPoly.PointCount(), aPoly.CPoints().data(), true, aColor, aColor );
GRClosedPoly( aDC, aPoly.PointCount(), aPoly.CPoints().data(), true, aColor );
} );
TEXT_ATTRIBUTES attributes;