blob: bffc7991b0a0657333c4d1f7053411c9f79dd9e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ac,v 1.4 2011/01/14 11:42:57 wiz Exp $
Fix build with png-1.5.
--- src/xitk/Imlib-light/load.c.orig 2010-03-01 17:02:05.000000000 +0000
+++ src/xitk/Imlib-light/load.c
@@ -61,7 +61,7 @@ unsigned char *_LoadPNG(ImlibData * id,
png_destroy_read_struct(&png_ptr, NULL, NULL);
return NULL;
}
- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
+ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
{
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
return NULL;
|