blob: 6b4d806aaa059bf9317634ebb8b46d0661a36622 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.5 2011/01/24 15:12:59 wiz Exp $
Fix build with png-1.5.
https://bugs.xine-project.org/show_bug.cgi?id=404
--- 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;
|