]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 15 Apr 2012 00:37:39 +0000 (00:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 15 Apr 2012 00:37:39 +0000 (00:37 +0000)
MagickCore/color.c
MagickCore/colorspace.c

index 44464b048a2c021d90c6195d42b1935b76d70048..3c33287f6ed593ffec546f9116bec657a70a52f7 100644 (file)
@@ -2252,7 +2252,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
           } while (isxdigit((int) ((unsigned char) *name)) != MagickFalse);
           depth=4*(n/4);
         }
-      color->colorspace=RGBColorspace;
+      color->colorspace=sRGBColorspace;
       color->matte=MagickFalse;
       range=GetQuantumRange(depth);
       color->red=(MagickRealType) ScaleAnyToQuantum(pixel.red,range);
@@ -2357,7 +2357,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
               ConvertHWBToRGB(fmod(fmod(geometry_info.rho,360.0)+360.0,360.0)/
                 360.0,geometry_info.sigma,geometry_info.xi,&pixel.red,
                 &pixel.green,&pixel.blue);
-          color->colorspace=RGBColorspace;
+          color->colorspace=sRGBColorspace;
           color->red=(MagickRealType) pixel.red;
           color->green=(MagickRealType) pixel.green;
           color->blue=(MagickRealType) pixel.blue;
@@ -2370,7 +2370,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
   p=GetColorCompliance(name,compliance,exception);
   if (p == (const ColorInfo *) NULL)
     return(MagickFalse);
-  color->colorspace=RGBColorspace;
+  color->colorspace=sRGBColorspace;
   color->matte=p->color.alpha != OpaqueAlpha ? MagickTrue : MagickFalse;
   color->red=(MagickRealType) p->color.red;
   color->green=(MagickRealType) p->color.green;
index b07cb119d13806c4a5df1f354f4d294f57cf8c75..e7410737b617079e680c24c2b339fafd5cca5fa0 100644 (file)
@@ -211,7 +211,7 @@ MagickExport MagickBooleanType RGBTransformImage(Image *image,
   assert(image->signature == MagickSignature);
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
-  assert(colorspace != RGBColorspace);
+  assert(colorspace != sRGBColorspace);
   assert(colorspace != TransparentColorspace);
   assert(colorspace != UndefinedColorspace);
   if (SetImageColorspace(image,colorspace,exception) == MagickFalse)
@@ -1250,7 +1250,7 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
   /*
     Convert the reference image from an alternate colorspace to RGB.
   */
-  if ((colorspace == RGBColorspace) || (colorspace == TransparentColorspace))
+  if ((colorspace == sRGBColorspace) || (colorspace == TransparentColorspace))
     return(TransformRGBImage(image,colorspace,exception));
   status=MagickTrue;
   if (IsRGBColorspace(image->colorspace) == MagickFalse)