aboutsummaryrefslogtreecommitdiff
path: root/games/adgali/files/patch-src-input-imageio-agl_pngio.c
blob: 9a7155464ad0c98ff1e9215d3dc94f2c53d9d423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/input/imageio/agl_pngio.c.orig	2003-06-24 01:58:47.000000000 +0200
+++ src/input/imageio/agl_pngio.c	2010-03-30 11:23:50.000000000 +0200
@@ -65,7 +65,7 @@
 	unsigned char buf[8];
 
 	if (agl_ios_read(ops, buf, 1, 8, NULL) == 8)
-		return png_check_sig(buf, 8);
+		return !png_sig_cmp(buf, 0, 8);
 	return 0;
 }
 
@@ -131,7 +131,7 @@
 	/* see pnglib for these calls */
 
 	if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
-		png_set_gray_1_2_4_to_8(png_ptr);
+		png_set_expand_gray_1_2_4_to_8(png_ptr);
 
 	if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
 		png_set_tRNS_to_alpha(png_ptr);