From: cristy Date: Wed, 30 Oct 2013 20:25:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=924a10151a799e6bafc2cb7bcb9d28fef6c7bc1a;p=imagemagick --- diff --git a/MagickCore/colorspace.c b/MagickCore/colorspace.c index 32f06dfc5..d529d0e53 100644 --- a/MagickCore/colorspace.c +++ b/MagickCore/colorspace.c @@ -529,7 +529,12 @@ static MagickBooleanType sRGBTransformImage(Image *image, break; } default: + { + X=QuantumScale*red; + Y=QuantumScale*green; + Z=QuantumScale*blue; break; + } } SetPixelRed(image,ClampToQuantum(QuantumRange*X),q); SetPixelGreen(image,ClampToQuantum(QuantumRange*Y),q); @@ -1862,7 +1867,12 @@ static MagickBooleanType TransformsRGBImage(Image *image, break; } default: + { + red=QuantumRange*X; + green=QuantumRange*Y; + blue=QuantumRange*Z; break; + } } SetPixelRed(image,ClampToQuantum(red),q); SetPixelGreen(image,ClampToQuantum(green),q); diff --git a/coders/dpx.c b/coders/dpx.c index 1da723588..8229773d0 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -774,7 +774,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) */ dpx.image.orientation=ReadBlobShort(image); offset+=2; - if (dpx.image.orientation != ~0U) + if (dpx.image.orientation != ~0) (void) FormatImageProperty(image,"dpx:image.orientation","%d", dpx.image.orientation); switch (dpx.image.orientation) diff --git a/coders/pdf.c b/coders/pdf.c index 7e509813d..e777315c6 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -1100,7 +1100,7 @@ static MagickBooleanType WritePDFImage(const ImageInfo *image_info,Image *image, version); (void) WriteBlobString(image,buffer); if (LocaleCompare(image_info->magick,"PDFA") == 0) - (void) WriteBlobString(image,"%âãÏÓ\n"); + (void) WriteBlobString(image,"%%âãÏÓ\n"); /* Write Catalog object. */