From 7d5642640d91c2d472fc17d904dd1aad63116282 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 3 Oct 2012 13:49:06 -0700 Subject: [PATCH] use the proper premultiplied pixel type for render_marker --- src/agg/agg_renderer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agg/agg_renderer.cpp b/src/agg/agg_renderer.cpp index cac9710a6..6fc29f91f 100644 --- a/src/agg/agg_renderer.cpp +++ b/src/agg/agg_renderer.cpp @@ -300,6 +300,7 @@ void agg_renderer::render_marker(pixel_position const& pos, marker const& mar typedef agg::pixfmt_custom_blend_rgba pixfmt_comp_type; typedef agg::renderer_base renderer_base; typedef agg::renderer_scanline_aa_solid renderer_type; + typedef agg::pod_bvector svg_attribute_type; ras_ptr->reset(); ras_ptr->gamma(agg::gamma_power()); @@ -324,9 +325,9 @@ void agg_renderer::render_marker(pixel_position const& pos, marker const& mar vertex_stl_adapter stl_storage((*marker.get_vector_data())->source()); svg_path_adapter svg_path(stl_storage); svg_renderer_agg, + svg_attribute_type, renderer_type, - agg::pixfmt_rgba32> svg_renderer(svg_path, + pixfmt_comp_type> svg_renderer(svg_path, (*marker.get_vector_data())->attributes()); svg_renderer.render(*ras_ptr, sl, renb, mtx, opacity, bbox);