" break;\n"
" }\n"
" }\n"
- " gamma=MagickEpsilonReciprocal(gamma);\n"
+ " gamma=1.0/(fabs((double) gamma) <= MagickEpsilon ? 1.0 : gamma);\n"
" const unsigned long index = y*columns+x;\n"
" output[index].x=ClampToQuantum(gamma*sum.x);\n"
" output[index].y=ClampToQuantum(gamma*sum.y);\n"
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
- (IsPixelInfoGray(fill) != MagickFalse))
+ (IsPixelInfoGray(fill) == MagickFalse))
(void) TransformImageColorspace(image,RGBColorspace,exception);
if ((fill->matte != MagickFalse) && (image->matte == MagickFalse))
(void) SetImageAlpha(image,OpaqueAlpha,exception);