diff --git a/src/agg/process_building_symbolizer.cpp b/src/agg/process_building_symbolizer.cpp index ecb91b3aa..bd9fb6921 100644 --- a/src/agg/process_building_symbolizer.cpp +++ b/src/agg/process_building_symbolizer.cpp @@ -57,7 +57,7 @@ void agg_renderer::process(building_symbolizer const& sym, typedef agg::renderer_base ren_base; typedef agg::renderer_scanline_aa_solid renderer; - agg::rendering_buffer buf(current_buffer_->raw_data(),width_,height_, width_ * 4); + agg::rendering_buffer buf(current_buffer_->raw_data(),current_buffer_->width(),current_buffer_->height(), current_buffer_->width() * 4); agg::pixfmt_rgba32 pixf(buf); ren_base renb(pixf); diff --git a/src/agg/process_line_pattern_symbolizer.cpp b/src/agg/process_line_pattern_symbolizer.cpp index 1f9f679fd..d308ffb17 100644 --- a/src/agg/process_line_pattern_symbolizer.cpp +++ b/src/agg/process_line_pattern_symbolizer.cpp @@ -115,7 +115,7 @@ void agg_renderer::process(line_pattern_symbolizer const& sym, if (!pat) return; - agg::rendering_buffer buf(current_buffer_->raw_data(),width_,height_, width_ * 4); + agg::rendering_buffer buf(current_buffer_->raw_data(),current_buffer_->width(),current_buffer_->height(), current_buffer_->width() * 4); pixfmt_type pixf(buf); pixf.comp_op(static_cast(sym.comp_op())); renderer_base ren_base(pixf); diff --git a/src/agg/process_line_symbolizer.cpp b/src/agg/process_line_symbolizer.cpp index e32b9b257..a0338aaf6 100644 --- a/src/agg/process_line_symbolizer.cpp +++ b/src/agg/process_line_symbolizer.cpp @@ -73,7 +73,7 @@ void agg_renderer::process(line_symbolizer const& sym, gamma_ = stroke_.get_gamma(); } - agg::rendering_buffer buf(current_buffer_->raw_data(),width_,height_, width_ * 4); + agg::rendering_buffer buf(current_buffer_->raw_data(),current_buffer_->width(),current_buffer_->height(), current_buffer_->width() * 4); typedef agg::rgba8 color_type; typedef agg::order_rgba order_type; diff --git a/src/agg/process_markers_symbolizer.cpp b/src/agg/process_markers_symbolizer.cpp index 66913a1b5..2bf71bfa2 100644 --- a/src/agg/process_markers_symbolizer.cpp +++ b/src/agg/process_markers_symbolizer.cpp @@ -127,7 +127,7 @@ void agg_renderer::process(markers_symbolizer const& sym, coord2d center = bbox.center(); agg::trans_affine_translation recenter(-center.x, -center.y); agg::trans_affine marker_trans = recenter * tr; - buf_type render_buffer(current_buffer_->raw_data(), width_, height_, width_ * 4); + buf_type render_buffer(current_buffer_->raw_data(), current_buffer_->width(), current_buffer_->height(), current_buffer_->width() * 4); dispatch_type rasterizer_dispatch(render_buffer, svg_renderer, *ras_ptr, @@ -167,7 +167,7 @@ void agg_renderer::process(markers_symbolizer const& sym, svg_attribute_type attributes; bool result = push_explicit_style( (*stock_vector_marker)->attributes(), attributes, sym); svg_renderer_type svg_renderer(svg_path, result ? attributes : (*stock_vector_marker)->attributes()); - buf_type render_buffer(current_buffer_->raw_data(), width_, height_, width_ * 4); + buf_type render_buffer(current_buffer_->raw_data(), current_buffer_->width(), current_buffer_->height(), current_buffer_->width() * 4); dispatch_type rasterizer_dispatch(render_buffer, svg_renderer, *ras_ptr, @@ -205,7 +205,7 @@ void agg_renderer::process(markers_symbolizer const& sym, agg::trans_affine marker_trans = recenter * tr; boost::optional marker = (*mark)->get_bitmap_data(); typedef raster_markers_rasterizer_dispatch dispatch_type; - buf_type render_buffer(current_buffer_->raw_data(), width_, height_, width_ * 4); + buf_type render_buffer(current_buffer_->raw_data(), current_buffer_->width(), current_buffer_->height(), current_buffer_->width() * 4); dispatch_type rasterizer_dispatch(render_buffer, *ras_ptr, **marker, diff --git a/src/agg/process_polygon_pattern_symbolizer.cpp b/src/agg/process_polygon_pattern_symbolizer.cpp index da43f91b3..4aacf9851 100644 --- a/src/agg/process_polygon_pattern_symbolizer.cpp +++ b/src/agg/process_polygon_pattern_symbolizer.cpp @@ -59,7 +59,7 @@ void agg_renderer::process(polygon_pattern_symbolizer const& sym, typedef agg::conv_clip_polygon clipped_geometry_type; typedef coord_transform path_type; - agg::rendering_buffer buf(current_buffer_->raw_data(), width_, height_, width_ * 4); + agg::rendering_buffer buf(current_buffer_->raw_data(), current_buffer_->width(), current_buffer_->height(), current_buffer_->width() * 4); ras_ptr->reset(); if (sym.get_gamma() != gamma_ || sym.get_gamma_method() != gamma_method_) { @@ -135,8 +135,8 @@ void agg_renderer::process(polygon_pattern_symbolizer const& sym, path_type path(t_,clipped,prj_trans); path.vertex(&x0,&y0); } - offset_x = unsigned(width_ - x0); - offset_y = unsigned(height_ - y0); + offset_x = unsigned(current_buffer_->width() - x0); + offset_y = unsigned(current_buffer_->height() - y0); } span_gen_type sg(img_src, offset_x, offset_y); diff --git a/src/agg/process_polygon_symbolizer.cpp b/src/agg/process_polygon_symbolizer.cpp index febd2a514..7e7e15d4c 100644 --- a/src/agg/process_polygon_symbolizer.cpp +++ b/src/agg/process_polygon_symbolizer.cpp @@ -76,7 +76,7 @@ void agg_renderer::process(polygon_symbolizer const& sym, } } - agg::rendering_buffer buf(current_buffer_->raw_data(),width_,height_, width_ * 4); + agg::rendering_buffer buf(current_buffer_->raw_data(),current_buffer_->width(),current_buffer_->height(), current_buffer_->width() * 4); color const& fill = sym.get_fill(); unsigned r=fill.red();