Blame SOURCES/autotrace-0001-Modify-GetOnePixel-usage-to-build-against-current-Im.patch

b7cf7d
From 296538ef2754df0c6e704ac172854816d4ff5cd2 Mon Sep 17 00:00:00 2001
b7cf7d
From: Caolan McNamara <caolanm@fedoraproject.org>
b7cf7d
Date: Mon, 2 Mar 2009 12:21:34 +0000
b7cf7d
Subject: [PATCH 1/3] Modify GetOnePixel usage to build against current
b7cf7d
 ImageMagick api
b7cf7d
b7cf7d
---
b7cf7d
 input-magick.c | 4 ++++
b7cf7d
 1 file changed, 4 insertions(+)
b7cf7d
b7cf7d
diff --git a/input-magick.c b/input-magick.c
b7cf7d
index 51c6409..bc36b8f 100644
b7cf7d
--- a/input-magick.c
b7cf7d
+++ b/input-magick.c
b7cf7d
@@ -83,7 +83,11 @@ at_bitmap_type input_magick_reader(at_string filename,
b7cf7d
 
b7cf7d
   for(j=0,runcount=0,point=0;j<image->rows;j++)
b7cf7d
     for(i=0;i<image->columns;i++) {
b7cf7d
+#if (MagickLibVersion < 0x0645) || (MagickLibVersion >= 0x0649)
b7cf7d
       p=GetOnePixel(image,i,j);
b7cf7d
+#else
b7cf7d
+      GetOnePixel(image,i,j,pixel);
b7cf7d
+#endif
b7cf7d
       AT_BITMAP_BITS(bitmap)[point++]=pixel->red; /* if gray: red=green=blue */
b7cf7d
       if(np==3) {
b7cf7d
         AT_BITMAP_BITS(bitmap)[point++]=pixel->green;
b7cf7d
-- 
b7cf7d
1.7.11.2
b7cf7d