Skip to content

Commit

Permalink
Merge pull request #12 from CartoDB/2.3.x.cartodb.fillrule
Browse files Browse the repository at this point in the history
Fill polygons irrespective of winding order (closes #11)
  • Loading branch information
Raul Ochoa committed Jan 13, 2016
2 parents a22b3e5 + 8e6ea77 commit 80587a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/agg/process_polygon_symbolizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void agg_renderer<T>::process(polygon_symbolizer const& sym,
renderer_type ren(renb);
ren.color(agg::rgba8_pre(r, g, b, int(a * sym.get_opacity())));
agg::scanline_u8 sl;
ras_ptr->filling_rule(agg::fill_even_odd);
agg::render_scanlines(*ras_ptr, sl, ren);

}
Expand Down

0 comments on commit 80587a6

Please sign in to comment.