diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-26 14:56:27 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-26 14:56:27 +0100 |
commit | 966deabf1507743e15cae315d13d51f7da7b68f3 (patch) | |
tree | 3a67a254429c432ca5b076f4315b8f6a0de76274 /rd/read-png.c | |
parent | ecc91c35b0c1c672f3a89865eb9c5e240ad5b0ef (diff) | |
download | fbida-966deabf1507743e15cae315d13d51f7da7b68f3.tar.gz |
fix to build with libpng 1.4
Thanks to Sean Robinson.
Diffstat (limited to 'rd/read-png.c')
-rw-r--r-- | rd/read-png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rd/read-png.c b/rd/read-png.c index 92e7b4a..990ce7e 100644 --- a/rd/read-png.c +++ b/rd/read-png.c @@ -69,7 +69,7 @@ png_init(FILE *fp, char *filename, unsigned int page, if (h->color_type == PNG_COLOR_TYPE_PALETTE) png_set_palette_to_rgb(h->png); if (h->color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - png_set_gray_1_2_4_to_8(h->png); + png_set_expand_gray_1_2_4_to_8(h->png); if (png_get_bKGD(h->png, h->info, &file_bg)) { png_set_background(h->png,file_bg,PNG_BACKGROUND_GAMMA_FILE,1,1.0); |