summaryrefslogtreecommitdiff
path: root/coders/map.c
diff options
context:
space:
mode:
authorcristy <urban-warrior@git.imagemagick.org>2011-07-14 02:18:59 +0000
committercristy <urban-warrior@git.imagemagick.org>2011-07-14 02:18:59 +0000
commited2315769b26818ed9d0c1291dc0457f0d8da0a4 (patch)
treed64ec3aca4fae940b9429472d1855ee5510e2641 /coders/map.c
parentb7e8bb553c8dfffc9de8498bc05d9e4670c324cc (diff)
downloadImageMagick-ed2315769b26818ed9d0c1291dc0457f0d8da0a4.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 58b3ca52c..0a08aee96 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+=GetPixelComponents(image);
+ q+=GetPixelChannels(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+=GetPixelComponents(image);
+ p+=GetPixelChannels(image);
}
(void) WriteBlob(image,(size_t) (q-pixels),pixels);
}