updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / libicns / png.patch
blob703556bbcf760b3d9b84bbc36b33bafc9d755942
1 diff -ru libicns-0.7.1/icnsutils/png2icns.c libicns-0.7.1_changed/icnsutils/png2icns.c
2 --- libicns-0.7.1/icnsutils/png2icns.c 2009-05-11 08:17:16.000000000 +0200
3 +++ libicns-0.7.1_changed/icnsutils/png2icns.c 2010-10-24 16:10:30.686666714 +0200
4 @@ -70,7 +70,7 @@
5 switch (color_type)
7 case PNG_COLOR_TYPE_GRAY:
8 - png_set_gray_1_2_4_to_8(png_ptr);
9 + png_set_expand_gray_1_2_4_to_8(png_ptr);
11 if (bit_depth == 16) {
12 png_set_strip_16(png_ptr);
13 @@ -82,7 +82,7 @@
14 break;
16 case PNG_COLOR_TYPE_GRAY_ALPHA:
17 - png_set_gray_1_2_4_to_8(png_ptr);
18 + png_set_expand_gray_1_2_4_to_8(png_ptr);
20 if (bit_depth == 16) {
21 png_set_strip_16(png_ptr);