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
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);
13 + png_set_expand_gray_1_2_4_to_8(h->png);
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);