Skip to content

Commit 4d54905

Browse files
committed
Simplify hatching.
1 parent f85bae3 commit 4d54905

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: ext/_mplcairo.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,7 @@ void GraphicsContextRenderer::draw_path(
10281028
cairo_set_source(cr_, hatch_pattern);
10291029
cairo_pattern_destroy(hatch_pattern);
10301030
load_path();
1031-
cairo_clip_preserve(cr_);
1032-
cairo_paint(cr_);
1031+
cairo_fill_preserve(cr_);
10331032
cairo_restore(cr_);
10341033
}
10351034
auto const& chunksize = rc_param("agg.path.chunksize").cast<int>();

0 commit comments

Comments
 (0)