From bcb82c42ab86b595bfc6a39686e08915c8fd7297 Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Mon, 29 Mar 2010 08:50:33 +0000 Subject: - Unbreak and fix changed API Approved by: maintainer (stass) --- graphics/ruby-rmagick/files/patch-ext-RMagick-rmpixel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/ruby-rmagick/files/patch-ext-RMagick-rmpixel.c (limited to 'graphics/ruby-rmagick') diff --git a/graphics/ruby-rmagick/files/patch-ext-RMagick-rmpixel.c b/graphics/ruby-rmagick/files/patch-ext-RMagick-rmpixel.c new file mode 100644 index 000000000000..0b8cc5d82d51 --- /dev/null +++ b/graphics/ruby-rmagick/files/patch-ext-RMagick-rmpixel.c @@ -0,0 +1,11 @@ +--- ext/RMagick/rmpixel.c.orig 2010-03-29 09:50:48.192772200 +0200 ++++ ext/RMagick/rmpixel.c 2010-03-29 09:52:23.334284319 +0200 +@@ -531,7 +531,7 @@ + // Ugly way of checking for change in ImageMagick 6.5.6-5 to see whether + // saturation/lightness should be out of 255 or out of 100. + if(MagickLibVersion < 0x656 || +- (MagickLibVersion == 0x656 && strcmp(MagickLibSubversion,"-5") <= 0) ) ++ (MagickLibVersion == 0x656 && strcmp(MagickLibAddendum,"-5") <= 0) ) + { + s = s/2.55; + l = l/2.55; -- cgit v1.2.3