Permalink
Browse files

rollback 1b4e7a8 - refs #1489 and #1227

  • Loading branch information...
1 parent f3589ab commit 2d5287c298dd595a837bbf894d21d5cd54aed653 Dane Springmeyer committed Sep 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/image_scaling.cpp
View
@@ -264,7 +264,8 @@ void scale_image_agg(Image & target,
double ratio)
{
typedef agg::pixfmt_rgba32 pixfmt;
- typedef agg::renderer_base<pixfmt> renderer_base;
+ typedef agg::pixfmt_rgba32_pre pixfmt_pre;
+ typedef agg::renderer_base<pixfmt_pre> renderer_base;
// define some stuff we'll use soon
agg::rasterizer_scanline_aa<> ras;
@@ -280,7 +281,7 @@ void scale_image_agg(Image & target,
// initialize destination AGG buffer (with transparency)
agg::rendering_buffer rbuf_dst((unsigned char*)target.getBytes(), target.width(), target.height(), target.width() * 4);
- pixfmt pixf_dst(rbuf_dst);
+ pixfmt_pre pixf_dst(rbuf_dst);
renderer_base rb_dst(pixf_dst);
rb_dst.clear(agg::rgba(0, 0, 0, 0));

0 comments on commit 2d5287c

Please sign in to comment.