From 3ecf287d9fdc86ecfd01aafabc37cc2c71586a46 Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 30 Apr 2011 20:39:31 +0000 Subject: [PATCH] --- coders/emf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coders/emf.c b/coders/emf.c index 44f336c9a..b1afb2748 100644 --- a/coders/emf.c +++ b/coders/emf.c @@ -57,6 +57,7 @@ #include "magick/list.h" #include "magick/magick.h" #include "magick/memory_.h" +#include "magick/pixel.h" #include "magick/quantum-private.h" #include "magick/static.h" #include "magick/string_.h" @@ -612,9 +613,9 @@ static Image *ReadEMFImage(const ImageInfo *image_info, break; for (x=0; x < (ssize_t) image->columns; x++) { - SetRedComponentPixel(q,ScaleCharToQuantum(pBits->rgbRed)); - SetGreenComponentPixel(q,ScaleCharToQuantum(pBits->rgbGreen)); - SetBlueComponentPixel(q,ScaleCharToQuantum(pBits->rgbBlue)); + SetRedPixelComponent(q,ScaleCharToQuantum(pBits->rgbRed)); + SetGreenPixelComponent(q,ScaleCharToQuantum(pBits->rgbGreen)); + SetBluePixelComponent(q,ScaleCharToQuantum(pBits->rgbBlue)); SetOpacityPixelComponent(q,OpaqueOpacity); pBits++; q++; -- 2.40.0