]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 9 Aug 2011 13:34:47 +0000 (13:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 9 Aug 2011 13:34:47 +0000 (13:34 +0000)
MagickCore/pixel.c

index e6bced4c5a0ce198e568671e312751d303ed8aba..554657ebbafff5c6d0359ea838379188543d5e95 100644 (file)
@@ -4918,26 +4918,26 @@ MagickExport void PushPixelChannelMap(Image *image,
 %
 %  The format of the SetPixelChannelMap method is:
 %
-%      void SetPixelChannelMap(Image *image,const ChannelType channel_mask)
+%      void SetPixelChannelMap(Image *image,const ChannelType mask)
 %
 %  A description of each parameter follows:
 %
 %    o image: the image.
 %
-%    o channel_mask: the channel mask.
+%    o mask: the channel mask.
 %
 */
-MagickExport void SetPixelChannelMap(Image *image,
-  const ChannelType channel_mask)
+MagickExport void SetPixelChannelMap(Image *image,const ChannelType mask)
 {
 #define GetChannelBit(alpha,i)  (((size_t) (alpha) >> (size_t) (i)) & 0x01)
 
   register ssize_t
     i;
 
+  image->sync=MagickFalse;
   for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
-    SetPixelChannelMapTraits(image,(PixelChannel) i,
-      GetChannelBit(channel_mask,i) ? UpdatePixelTrait : CopyPixelTrait);
+    SetPixelChannelMapTraits(image,(PixelChannel) i,GetChannelBit(mask,i) ?
+      UpdatePixelTrait : CopyPixelTrait);
   for ( ; i < MaxPixelChannels; i++)
     SetPixelChannelMapTraits(image,(PixelChannel) i,UndefinedPixelTrait);
 }