From: cristy Date: Tue, 13 Nov 2012 15:56:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4722 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f97ff8ef137370ef0df643378949da4ef2db7f2;p=imagemagick --- diff --git a/coders/hrz.c b/coders/hrz.c index 580ecd06c..98ae60502 100644 --- a/coders/hrz.c +++ b/coders/hrz.c @@ -158,9 +158,9 @@ static Image *ReadHRZImage(const ImageInfo *image_info,ExceptionInfo *exception) break; for (x=0; x < (ssize_t) image->columns; x++) { - SetPixelRed(image,4*ScaleCharToQuantum(*p++),q); - SetPixelGreen(image,4*ScaleCharToQuantum(*p++),q); - SetPixelBlue(image,4*ScaleCharToQuantum(*p++),q); + SetPixelRed(image,ScaleCharToQuantum(4**p++),q); + SetPixelGreen(image,ScaleCharToQuantum(4**p++),q); + SetPixelBlue(image,ScaleCharToQuantum(4**p++),q); SetPixelAlpha(image,OpaqueAlpha,q); q+=GetPixelChannels(image); } @@ -330,9 +330,9 @@ static MagickBooleanType WriteHRZImage(const ImageInfo *image_info,Image *image, q=pixels; for (x=0; x < (ssize_t) hrz_image->columns; x++) { - *q++=ScaleQuantumToChar(GetPixelRed(hrz_image,p))/4; - *q++=ScaleQuantumToChar(GetPixelGreen(hrz_image,p))/4; - *q++=ScaleQuantumToChar(GetPixelBlue(hrz_image,p))/4; + *q++=ScaleQuantumToChar(GetPixelRed(hrz_image,p)/4); + *q++=ScaleQuantumToChar(GetPixelGreen(hrz_image,p)/4); + *q++=ScaleQuantumToChar(GetPixelBlue(hrz_image,p)/4); p+=GetPixelChannels(hrz_image); } count=WriteBlob(image,(size_t) (q-pixels),pixels); diff --git a/tests/validate.h b/tests/validate.h index 9e201772d..7c0fcb459 100644 --- a/tests/validate.h +++ b/tests/validate.h @@ -262,7 +262,6 @@ static const struct ReferenceFormats { "GIF87", UndefinedCompression, 0.0 }, { "GRAY", UndefinedCompression, 0.003 }, { "HTM", UndefinedCompression, 0.0 }, - { "HRZ", UndefinedCompression, 0.0 }, { "HTML", UndefinedCompression, 0.0 }, { "ICB", UndefinedCompression, 0.0 }, { "ICO", UndefinedCompression, 0.0 },