1 $OpenBSD: patch-converter_other_pamrgbatopng_c,v 1.1 2011/07/08 20:36:09 naddy Exp $
2 
3 Fix build with png-1.5.
4 
5 --- converter/other/pamrgbatopng.c.orig	Fri Aug 18 21:12:28 2006
6 +++ converter/other/pamrgbatopng.c	Mon Jul  4 14:21:23 2011
7 @@ -101,10 +101,8 @@ writePng(const struct pam * const pamP,
8      if (!infoP)
9          pm_error("Could not allocate PNG info structure");
10      else {
11 -        infoP->width      = pamP->width;
12 -        infoP->height     = pamP->height;
13 -        infoP->bit_depth  = 8;
14 -        infoP->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
15 +        png_set_IHDR(pngP, infoP, pamP->width, pamP->height,
16 +                     8, PNG_COLOR_TYPE_RGB_ALPHA, 0, 0, 0);
17 
18          png_init_io(pngP, ofP);
19 
20