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

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