15 lines
520 B
Text
15 lines
520 B
Text
$NetBSD: patch-ab,v 1.2 2014/05/25 07:51:06 obache Exp $
|
|
|
|
* Fix build for png-1.4.x.
|
|
|
|
--- src/im_png.c.orig 2002-10-15 14:30:58.000000000 +0000
|
|
+++ src/im_png.c
|
|
@@ -273,7 +273,7 @@ png_read_start(image_png *im)
|
|
if (im->im.oi.cspace.depth != im->im.i.cspace.depth) {
|
|
if (im->im.oi.cspace.type == IMAGE_CS_GRAY
|
|
&& im->im.oi.cspace.depth /* XXX ?! */)
|
|
- png_set_gray_1_2_4_to_8(im->png);
|
|
+ png_set_expand_gray_1_2_4_to_8(im->png);
|
|
else if (im->im.oi.cspace.depth == 16)
|
|
png_set_strip_16(im->png);
|
|
}
|