summaryrefslogtreecommitdiff
path: root/coders/map.c
diff options
context:
space:
mode:
authorcristy <urban-warrior@git.imagemagick.org>2011-07-07 16:25:41 +0000
committercristy <urban-warrior@git.imagemagick.org>2011-07-07 16:25:41 +0000
commitdcfc1ad7e0ad199ccd86e9508e9c5775e4c4bbdb (patch)
tree4b82cdc9ea5548011fa3b286b42bb061b2b8c8ce /coders/map.c
parent92611572b8d3d992b00b590f90e4a11cd587e5ee (diff)
downloadImageMagick-dcfc1ad7e0ad199ccd86e9508e9c5775e4c4bbdb.tar.gz
Diffstat (limited to 'coders/map.c')
-rw-r--r--coders/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coders/map.c b/coders/map.c
index 0a08aee96..58b3ca52c 100644
--- a/coders/map.c
+++ b/coders/map.c
@@ -227,7 +227,7 @@ static Image *ReadMAPImage(const ImageInfo *image_info,ExceptionInfo *exception)
}
SetPixelIndex(image,index,q);
SetPixelPacket(image,image->colormap+(ssize_t) index,q);
- q+=GetPixelChannels(image);
+ q+=GetPixelComponents(image);
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
break;
@@ -423,7 +423,7 @@ static MagickBooleanType WriteMAPImage(const ImageInfo *image_info,Image *image)
if (image->colors > 256)
*q++=(unsigned char) ((size_t) GetPixelIndex(image,p) >> 8);
*q++=(unsigned char) GetPixelIndex(image,p);
- p+=GetPixelChannels(image);
+ p+=GetPixelComponents(image);
}
(void) WriteBlob(image,(size_t) (q-pixels),pixels);
}