summaryrefslogtreecommitdiff
path: root/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-03-12 17:35:09 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-03-12 17:35:09 +0200
commit7d10c2b713ffe1d904a00e1f9cdf4e5b418765d2 (patch)
treeaa09f235214806d34cc7f54ba36b5ceb41cbb903 /sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch
parentcca8c5a01ce87a53c3240b2945f7345e194dc2b4 (diff)
Corrected plymouth 0.9.0
Diffstat (limited to 'sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch')
-rw-r--r--sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch b/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch
new file mode 100644
index 00000000..42985c5b
--- /dev/null
+++ b/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch
@@ -0,0 +1,24 @@
+From 07329b72687ccc7a9015de4a48fae297d6d5ff96 Mon Sep 17 00:00:00 2001
+From: Brett Witherspoon <spoonb@cdspooner.com>
+Date: Tue, 12 Oct 2010 03:23:47 +0000
+Subject: 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.
+---
+diff --git a/src/libply-splash-graphics/ply-image.c b/src/libply-splash-graphics/ply-image.c
+index 9369242..4b16783 100644
+--- a/src/libply-splash-graphics/ply-image.c
++++ b/src/libply-splash-graphics/ply-image.c
+@@ -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);
+--
+cgit v0.8.3-6-g21f6