diff --git a/src/svgren/config.hxx b/src/svgren/config.hxx index 7b68306..d01eaf8 100644 --- a/src/svgren/config.hxx +++ b/src/svgren/config.hxx @@ -34,6 +34,7 @@ namespace svgren { using real = svgdom::real; +// TODO: take these types from veg using image_type = rasterimage::image; using image_span_type = decltype(std::declval().span()); diff --git a/src/svgren/filter_applier.cpp b/src/svgren/filter_applier.cpp index b79bb64..8697dcc 100644 --- a/src/svgren/filter_applier.cpp +++ b/src/svgren/filter_applier.cpp @@ -467,7 +467,7 @@ filter_result color_matrix( using std::min; c1 = min(c1, real(1)); // clamp top - *dp = rasterimage::to_integral(c1); + *dp = rasterimage::to_integral(c1); ++dp; } } @@ -693,7 +693,7 @@ filter_result blend(surface& in, surface& in2, svgdom::fe_blend_element::mode mo // qr = 1 - (1 - qa) * (1 - qb) auto qr = 1 - (1 - c01.a()) * (1 - c02.a()); - *dp = rasterimage::to_integral(r4::vector4{cr, qr}); + *dp = rasterimage::to_integral(r4::vector4{cr, qr}); ++dp; } } @@ -782,7 +782,7 @@ filter_result composite(surface& in, surface& in2, const svgdom::fe_composite_el break; } - *dp = rasterimage::to_integral(o); + *dp = rasterimage::to_integral(o); ++dp; } }