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

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