From 84842f59c77dd8f51a65173f244a5c578cd7614b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 23 Jul 2013 18:44:39 -0400 Subject: [PATCH] use pixfmt pre for the sake of clarity --- src/graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 5119cf397..cf55b37c3 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -30,6 +30,7 @@ // agg #include "agg_rendering_buffer.h" #include "agg_pixfmt_rgba.h" +#include "agg_color_rgba.h" // boost #include @@ -202,7 +203,7 @@ void image_32::premultiply() void image_32::demultiply() { agg::rendering_buffer buffer(data_.getBytes(),width_,height_,width_ * 4); - agg::pixfmt_rgba32 pixf(buffer); + agg::pixfmt_rgba32_pre pixf(buffer); pixf.demultiply(); premultiplied_ = false; }