]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
image: replace deprecated libpng function
authorBrett Witherspoon <spoonb@cdspooner.com>
Tue, 12 Oct 2010 03:23:47 +0000 (22:23 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 13 Oct 2010 12:20:10 +0000 (08:20 -0400)
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.

src/libply-splash-graphics/ply-image.c

index 93692424c59365b584b7177b43f967c119736ab8..4b16783bb87723b796e96dc396bb157270b39555 100644 (file)
@@ -151,7 +151,7 @@ ply_image_load (ply_image_t *image)
     png_set_palette_to_rgb (png);
 
   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);
 
   if (png_get_valid (png, info, PNG_INFO_tRNS))
     png_set_tRNS_to_alpha (png);