From: cristy Date: Sat, 7 Apr 2012 00:50:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5881 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2799f5b3f32aea533d3aa7f0681ef48c0f3d780;p=imagemagick --- diff --git a/MagickCore/colormap.c b/MagickCore/colormap.c index 418ba5e31..5da424225 100644 --- a/MagickCore/colormap.c +++ b/MagickCore/colormap.c @@ -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++)