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