updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / exiftran / libpng-1.4.patch
blobf8a80d4b284b46c85e342d189df0817986fa0745
1 diff -Naur fbida-2.07-orig/rd/read-png.c fbida-2.07/rd/read-png.c
2 --- fbida-2.07-orig/rd/read-png.c 2010-01-18 00:02:02.000000000 -0500
3 +++ fbida-2.07/rd/read-png.c 2010-01-18 00:06:09.000000000 -0500
4 @@ -69,8 +69,11 @@
5 if (h->color_type == PNG_COLOR_TYPE_PALETTE)
6 png_set_palette_to_rgb(h->png);
7 if (h->color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
8 - png_set_gray_1_2_4_to_8(h->png);
10 +#if PNG_LIBPNG_VER < 10400
11 + png_set_gray_1_2_4_to_8(h->png);
12 +#else
13 + png_set_expand_gray_1_2_4_to_8(h->png);
14 +#endif
15 if (png_get_bKGD(h->png, h->info, &file_bg)) {
16 png_set_background(h->png,file_bg,PNG_BACKGROUND_GAMMA_FILE,1,1.0);
17 } else {