]> git.pld-linux.org Git - packages/endeavour.git/blob - endeavour-libpng.patch
- release 7 (by relup.sh)
[packages/endeavour.git] / endeavour-libpng.patch
1 --- endeavour-3.1.4/endeavour2/imgio_png.c.orig 2009-09-12 09:00:00.000000000 +0200
2 +++ endeavour-3.1.4/endeavour2/imgio_png.c      2014-02-05 17:55:19.894183865 +0100
3 @@ -1,6 +1,8 @@
4  #ifdef HAVE_LIBPNG
5  #include <stdio.h>
6  #include <stdlib.h>
7 +#include <string.h>
8 +#include <strings.h>
9  #include <errno.h>
10  #include <sys/types.h>
11  #include <sys/stat.h>
12 @@ -651,11 +653,11 @@
13  
14         /* Get the PNG color type */
15         ctx->png_color_type = color_type = ((png_info_ptr != NULL) ?
16 -               png_info_ptr->color_type : PNG_COLOR_TYPE_GRAY
17 +               png_get_color_type(png_ptr, png_info_ptr) : PNG_COLOR_TYPE_GRAY
18         );
19  
20         /* Get the PNG bit depth */
21 -       ctx->png_bit_depth = bit_depth = (png_info_ptr != NULL) ? png_info_ptr->bit_depth : 1;
22 +       ctx->png_bit_depth = bit_depth = (png_info_ptr != NULL) ? png_get_bit_depth(png_ptr, png_info_ptr) : 1;
23  
24  
25         /* Insert transformations here */
This page took 0.046255 seconds and 3 git commands to generate.