Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ pre-multiply rendering buffer after applying background color and/o…

…r pattern
  • Loading branch information...
commit 8c98d8a199226cd59c16f707bd1e87aa78cc12a3 1 parent 5414912
@artemp artemp authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/agg/agg_renderer.cpp
View
5 src/agg/agg_renderer.cpp
@@ -159,6 +159,10 @@ void agg_renderer<T>::setup(Map const &m)
}
}
+ agg::rendering_buffer buf(pixmap_.raw_data(),width_,height_, width_ * 4);
+ agg::pixfmt_rgba32 pixf(buf);
+ pixf.premultiply();
+
MAPNIK_LOG_DEBUG(agg_renderer) << "agg_renderer: Scale=" << m.scale();
}
@@ -169,7 +173,6 @@ template <typename T>
void agg_renderer<T>::start_map_processing(Map const& map)
{
MAPNIK_LOG_DEBUG(agg_renderer) << "agg_renderer: Start map processing bbox=" << map.get_current_extent();
-
ras_ptr->clip_box(0,0,width_,height_);
}

1 comment on commit 8c98d8a

@springmeyer
Owner

fixed this up in #1515

Please sign in to comment.
Something went wrong with that request. Please try again.