summaryrefslogtreecommitdiff
path: root/graphics/autotrace/files/patch-input-magick.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/autotrace/files/patch-input-magick.c')
-rw-r--r--graphics/autotrace/files/patch-input-magick.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/autotrace/files/patch-input-magick.c b/graphics/autotrace/files/patch-input-magick.c
new file mode 100644
index 000000000000..a20852dca7ce
--- /dev/null
+++ b/graphics/autotrace/files/patch-input-magick.c
@@ -0,0 +1,11 @@
+--- input-magick.c.orig 2008-12-02 22:58:14.000000000 +0100
++++ input-magick.c 2008-12-02 22:58:31.000000000 +0100
+@@ -83,7 +83,7 @@
+
+ for(j=0,runcount=0,point=0;j<image->rows;j++)
+ for(i=0;i<image->columns;i++) {
+- p=GetOnePixel(image,i,j);
++ GetOnePixel(image,i,j, pixel);
+ AT_BITMAP_BITS(bitmap)[point++]=pixel->red; /* if gray: red=green=blue */
+ if(np==3) {
+ AT_BITMAP_BITS(bitmap)[point++]=pixel->green;