From 10c6dc6fcb666f5984cd6b51102989b709959f72 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 19 Jun 2012 17:53:59 -0400 Subject: [PATCH] ensure the composite operation also applies to the 'fast' line rasterizer method - refs #1262 --- src/agg/process_line_symbolizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agg/process_line_symbolizer.cpp b/src/agg/process_line_symbolizer.cpp index a8e52a7c0..9edf59b4a 100644 --- a/src/agg/process_line_symbolizer.cpp +++ b/src/agg/process_line_symbolizer.cpp @@ -74,6 +74,7 @@ void agg_renderer::process(line_symbolizer const& sym, typedef agg::renderer_base renderer_base; pixfmt_comp_type pixf(buf); + pixf.comp_op(static_cast(sym.comp_op())); renderer_base renb(pixf); agg::trans_affine tr; @@ -138,7 +139,6 @@ void agg_renderer::process(line_symbolizer const& sym, } typedef agg::renderer_scanline_aa_solid renderer_type; - pixf.comp_op(static_cast(sym.comp_op())); renderer_base renb(pixf); renderer_type ren(renb); ren.color(agg::rgba8_pre(r, g, b, int(a * stroke_.get_opacity())));