diff options
author | adam <adam@pkgsrc.org> | 2012-03-19 12:39:29 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2012-03-19 12:39:29 +0000 |
commit | 01faf24be3a63082859c56b6756823421e5fb5d8 (patch) | |
tree | b55469128edb5dc0c29044ee2c02b89974360d2b /graphics | |
parent | 3fa6844b90128e447a14b987ba3a0092109b8aa3 (diff) | |
download | pkgsrc-01faf24be3a63082859c56b6756823421e5fb5d8.tar.gz |
Added patch: fix colour reduction bug.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/optipng/distinfo | 3 | ||||
-rw-r--r-- | graphics/optipng/patches/patch-src_optipng_opngreduc.c | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/optipng/distinfo b/graphics/optipng/distinfo index cb75073abf1..e8321821192 100644 --- a/graphics/optipng/distinfo +++ b/graphics/optipng/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.19 2012/03/07 09:11:43 adam Exp $ +$NetBSD: distinfo,v 1.20 2012/03/19 12:39:29 adam Exp $ SHA1 (optipng-0.7.tar.gz) = 68122f8cdd279312a4d4cde53a48286ded680f06 RMD160 (optipng-0.7.tar.gz) = 5a4ef72c786ac28a44d6f0e5335c65484767c461 Size (optipng-0.7.tar.gz) = 1607303 bytes +SHA1 (patch-src_optipng_opngreduc.c) = 67b404f6d71133a6a585e1d18b321cafe54d4422 diff --git a/graphics/optipng/patches/patch-src_optipng_opngreduc.c b/graphics/optipng/patches/patch-src_optipng_opngreduc.c new file mode 100644 index 00000000000..ce3a060bbaf --- /dev/null +++ b/graphics/optipng/patches/patch-src_optipng_opngreduc.c @@ -0,0 +1,17 @@ +$NetBSD: patch-src_optipng_opngreduc.c,v 1.1 2012/03/19 12:39:55 adam Exp $ + +Fix colour reduction bug. + +--- src/optipng/opngreduc.c.orig 2012-03-19 12:22:37.000000000 +0000 ++++ src/optipng/opngreduc.c +@@ -1207,7 +1207,10 @@ opng_reduce_palette(png_structp png_ptr, + } + + if (reductions & OPNG_REDUCE_8_TO_4_2_1) ++ { + result |= opng_reduce_palette_bits(png_ptr, info_ptr, reductions); ++ bit_depth = png_get_bit_depth(png_ptr, info_ptr); ++ } + if ((bit_depth < 8) || !is_gray) + return result; + |