* Windows does not support complex.h (reference
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=15808).
* Add support for monochrome PSD images.
+ * VignetteImage() no longer crashes when x and y arguments are both greater
+ than half the width (x) and height (y) of the image.
2010-03-20 6.6.0-8 Glenn Randers-Pehrson <glennrp@image...>
* Eliminated some of the deprecated direct references to members of
/*
Allocate primitive info memory.
*/
- graphic_context=(DrawInfo **) AcquireAlignedMemory(1,sizeof(*graphic_context));
+ graphic_context=(DrawInfo **) AcquireAlignedMemory(1,
+ sizeof(*graphic_context));
if (graphic_context == (DrawInfo **) NULL)
{
primitive=DestroyString(primitive);
}
delta=2.0/MagickMax(stop.x,stop.y);
step=(MagickRealType) (MagickPI/8.0);
- if (delta < (MagickPI/8.0))
+ if ((delta >= 0.0) && (delta < (MagickPI/8.0)))
step=MagickPI/(4*(MagickPI/delta/2+0.5));
angle.x=DegreesToRadians(degrees.x);
y=degrees.y;