From 6495ea8996f52c05f3d285cbc8e43fdeb32754c2 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 14 Feb 2012 18:39:36 +0000 Subject: [PATCH] + clip polygons --- src/agg/process_polygon_symbolizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agg/process_polygon_symbolizer.cpp b/src/agg/process_polygon_symbolizer.cpp index 89e389442..d0c378091 100644 --- a/src/agg/process_polygon_symbolizer.cpp +++ b/src/agg/process_polygon_symbolizer.cpp @@ -60,8 +60,9 @@ void agg_renderer::process(polygon_symbolizer const& sym, unsigned g=fill_.green(); unsigned b=fill_.blue(); unsigned a=fill_.alpha(); + renb.clip_box(0,0,width_,height_); renderer ren(renb); - + ras_ptr->reset(); switch (sym.get_gamma_method()) {