Skip to content

Commit 19b308b

Browse files
committed
ptch: Use butt line cap in AGGRenderer and update examples
1 parent 378d368 commit 19b308b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/AGGRenderer/CPPAGGRenderer/CPPAGGRenderer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace CPPAGGRenderer{
7777
public:
7878
agg::rasterizer_scanline_aa<> m_ras;
7979
agg::scanline_p8 m_sl_p8;
80-
agg::line_cap_e roundCap = agg::round_cap;
80+
agg::line_cap_e buttCap = agg::butt_cap;
8181
renderer_aa ren_aa;
8282
int pngBufferSize = 0;
8383

@@ -352,7 +352,7 @@ namespace CPPAGGRenderer{
352352
agg::conv_stroke<agg::conv_dash<agg::conv_stroke<agg::conv_curve<agg::conv_transform<agg::path_storage, agg::trans_affine>>>>> poly2(poly2_dash);
353353
poly2.width(thickness);
354354
poly2_dash.add_dash(thickness + 1, thickness + 1);
355-
poly2.line_cap(roundCap);
355+
poly2.line_cap(buttCap);
356356
m_ras.add_path(poly2);
357357
}
358358
else {
@@ -384,7 +384,7 @@ namespace CPPAGGRenderer{
384384
agg::conv_stroke<agg::conv_curve<agg::conv_dash<agg::conv_transform<agg::path_storage, agg::trans_affine>>>> poly2(curve);
385385
poly2.width(thickness);
386386
poly2_dash.add_dash(thickness + 1, thickness + 1);
387-
poly2.line_cap(roundCap);
387+
poly2.line_cap(buttCap);
388388
m_ras.add_path(poly2);
389389
}
390390
else {
-17 Bytes
Loading
-126 Bytes
Loading

0 commit comments

Comments
 (0)