diff options
author | Brett Witherspoon <spoonb@cdspooner.com> | 2010-10-11 22:23:47 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2010-10-13 08:20:10 -0400 |
commit | 07329b72687ccc7a9015de4a48fae297d6d5ff96 (patch) | |
tree | cdeff2ffe5dc4e8a2c4144c086b1bbd537d5035d | |
parent | 34c6f34c6d53ec0e2dc58fabfcf412d34709605b (diff) |
image: replace deprecated libpng function
The png_set_gray_1_2_4_to_8 function is deprecated and has been removed
from libpng14. Now png_set_expand_gray_1_2_4_to_8 is used instead which
is compatible with libpng-1.2.9 and greater.
-rw-r--r-- | src/libply-splash-graphics/ply-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libply-splash-graphics/ply-image.c b/src/libply-splash-graphics/ply-image.c index 93692424..4b16783b 100644 --- a/src/libply-splash-graphics/ply-image.c +++ b/src/libply-splash-graphics/ply-image.c @@ -153,3 +153,3 @@ ply_image_load (ply_image_t *image) if ((color_type == PNG_COLOR_TYPE_GRAY) && (bits_per_pixel < 8)) - png_set_gray_1_2_4_to_8 (png); + png_set_expand_gray_1_2_4_to_8 (png); |