diff --git a/MagickCore/gem.c b/MagickCore/gem.c
index 3ff7cc0..3d59bc5 100644
--- a/MagickCore/gem.c
+++ b/MagickCore/gem.c
@@ -95,8 +95,7 @@
h,
m,
r,
- x,
- z;
+ x;
/*
Convert HCL to RGB colorspace.
@@ -146,25 +145,9 @@
b=x;
}
m=luma-(0.298839f*r+0.586811f*g+0.114350f*b);
- /*
- Choose saturation strategy to clip it into the RGB cube; hue and luma are
- preserved and chroma may be changed.
- */
- z=1.0;
- if (m < 0.0)
- {
- z=luma/(luma-m);
- m=0.0;
- }
- else
- if ((m+c) > 1.0)
- {
- z=(1.0-luma)/(m+c-luma);
- m=1.0-z*c;
- }
- *red=QuantumRange*(z*r+m);
- *green=QuantumRange*(z*g+m);
- *blue=QuantumRange*(z*b+m);
+ *red=QuantumRange*(r+m);
+ *green=QuantumRange*(g+m);
+ *blue=QuantumRange*(b+m);
}
/*
diff --git a/tests/validate.c b/tests/validate.c
index 47b373f..69c0b1f 100644
--- a/tests/validate.c
+++ b/tests/validate.c
@@ -84,8 +84,8 @@
%
*/
static size_t ValidateCompareCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,
@@ -175,8 +175,8 @@
%
*/
static size_t ValidateCompositeCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,
@@ -267,8 +267,8 @@
%
*/
static size_t ValidateConvertCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,
@@ -358,8 +358,8 @@
%
*/
static size_t ValidateIdentifyCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,
@@ -450,8 +450,8 @@
%
*/
static size_t ValidateImageFormatsInMemory(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
size[MaxTextExtent];
@@ -696,8 +696,8 @@
%
*/
static size_t ValidateImageFormatsOnDisk(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
size[MaxTextExtent];
@@ -908,8 +908,8 @@
%
*/
static size_t ValidateImportExportPixels(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
double
distortion;
@@ -1085,8 +1085,8 @@
%
*/
static size_t ValidateMontageCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,
@@ -1177,8 +1177,8 @@
%
*/
static size_t ValidateStreamCommand(ImageInfo *image_info,
- const char *reference_filename,const char *output_filename,
- size_t *fail,ExceptionInfo *exception)
+ const char *reference_filename,const char *output_filename,size_t *fail,
+ ExceptionInfo *exception)
{
char
**arguments,