Also add some patches to remove use of deprecated symbols and fix other problems when looking for or compiling against libpng-1.4.x.
13 lines
612 B
Text
13 lines
612 B
Text
$NetBSD: patch-ad,v 1.1 2010/06/13 22:44:11 wiz Exp $
|
|
|
|
--- src/nrrd/formatPNG.c.orig 2005-03-01 22:27:40.000000000 +0000
|
|
+++ src/nrrd/formatPNG.c
|
|
@@ -216,7 +216,7 @@ _nrrdFormatPNG_read(FILE *file, Nrrd *nr
|
|
png_set_palette_to_rgb(png);
|
|
/* expand grayscale images to 8 bits from 1, 2, or 4 bits */
|
|
if (type == PNG_COLOR_TYPE_GRAY && depth < 8)
|
|
- png_set_gray_1_2_4_to_8(png);
|
|
+ png_set_expand_gray_1_2_4_to_8(png);
|
|
/* expand paletted or rgb images with transparency to full alpha
|
|
channels so the data will be available as rgba quartets */
|
|
if (png_get_valid(png, info, PNG_INFO_tRNS))
|