#include "magick/blob-private.h"
#include "magick/cache.h"
#include "magick/color.h"
-#include "magick/colormap-private.h"
#include "magick/color-private.h"
+#include "magick/colormap.h"
+#include "magick/colormap-private.h"
#include "magick/colorspace.h"
#include "magick/draw.h"
#include "magick/exception.h"
static MagickBooleanType DecodeImage(Image *image,
const MagickBooleanType compression,unsigned char *pixels)
{
-#if !defined(__WINDOWS__) || defined(__MINGW32__)
+#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__MINGW32__)
#define BI_RGB 0
#define BI_RLE8 1
#define BI_RLE4 2
Correct image orientation.
*/
flipped_image=FlipImage(image,exception);
- if (flipped_image == (Image *) NULL)
+ if (flipped_image != (Image *) NULL)
{
- image=DestroyImageList(image);
- return((Image *) NULL);
+ DuplicateBlob(flipped_image,image);
+ image=DestroyImage(image);
+ image=flipped_image;
}
- DuplicateBlob(flipped_image,image);
- image=DestroyImage(image);
- image=flipped_image;
}
(void) CloseBlob(image);
return(GetFirstImageInList(image));