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

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