Skip to content

Commit

Permalink
Simplify hatching.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Mar 5, 2024
1 parent f85bae3 commit 7f5a6ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/_mplcairo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,12 @@ void GraphicsContextRenderer::draw_path(
fill_and_stroke_exact(
hatch_cr, *hatch_path, &mtx, hatch_color, hatch_color);
auto const& hatch_pattern =
cairo_pattern_create_for_surface(cairo_get_target(hatch_cr));
cairo_pattern_create_for_surface(hatch_surface);
cairo_pattern_set_extend(hatch_pattern, CAIRO_EXTEND_REPEAT);
cairo_set_source(cr_, hatch_pattern);
cairo_pattern_destroy(hatch_pattern);
load_path();
cairo_clip_preserve(cr_);
cairo_paint(cr_);
cairo_fill_preserve(cr_);
cairo_restore(cr_);
}
auto const& chunksize = rc_param("agg.path.chunksize").cast<int>();
Expand Down

0 comments on commit 7f5a6ef

Please sign in to comment.