summaryrefslogtreecommitdiffstats
path: root/abs/extra/libgdiplus/gdiplus-png14.patch
blob: d13260812966e5b43b5f7e2cb45150dbdf8dedbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/pngcodec.c.orig	2010-01-16 23:47:17.000000000 +0100
+++ src/pngcodec.c	2010-01-16 23:49:49.000000000 +0100
@@ -352,7 +352,7 @@
 						info_ptr->palette[i].blue,
 						info_ptr->palette[i].green,
 						info_ptr->palette[i].red,
-						info_ptr->trans[i]); /* alpha */
+						info_ptr->trans_alpha[i]); /* alpha */
 			}
 		}
 
@@ -418,7 +418,7 @@
 		}
 
 		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)) {