From e2799f5b3f32aea533d3aa7f0681ef48c0f3d780 Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 7 Apr 2012 00:50:01 +0000 Subject: [PATCH] --- MagickCore/colormap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++) -- 2.40.0