]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 30 Apr 2011 20:39:31 +0000 (20:39 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 30 Apr 2011 20:39:31 +0000 (20:39 +0000)
coders/emf.c

index 44f336c9a56dc3504471cf5665eac9bb93d101ec..b1afb2748361a90653530a11484a2aa5dfe9a27d 100644 (file)
@@ -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++;