]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 7 Apr 2012 00:50:01 +0000 (00:50 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 7 Apr 2012 00:50:01 +0000 (00:50 +0000)
MagickCore/colormap.c

index 418ba5e31308f0775f47e7c50682228e07479443..5da424225bfa20113c255f70f2e445aef7bd5c5c 100644 (file)
@@ -140,6 +140,8 @@ MagickExport MagickBooleanType AcquireImageColormap(Image *image,
       pixel;
 
     pixel=(double) (i*(QuantumRange/MagickMax(colors-1,1)));
+    GetPixelInfo(image,image->colormap+i);
+    image->colormap[i].matte=MagickTrue;
     image->colormap[i].red=pixel;
     image->colormap[i].green=pixel;
     image->colormap[i].blue=pixel;
@@ -200,7 +202,7 @@ MagickExport MagickBooleanType CycleColormapImage(Image *image,
     (void) SetImageType(image,PaletteType,exception);
   status=MagickTrue;
   image_view=AcquireCacheView(image);
-#if defined(MAGICKCORE_OPENMP_SUPPORT) 
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
   #pragma omp parallel for schedule(static,4) shared(status)
 #endif
   for (y=0; y < (ssize_t) image->rows; y++)