diff options
Diffstat (limited to 'x11-wm/pekwm/files/pekwm-0.1.11-libpng14.patch')
-rw-r--r-- | x11-wm/pekwm/files/pekwm-0.1.11-libpng14.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-wm/pekwm/files/pekwm-0.1.11-libpng14.patch b/x11-wm/pekwm/files/pekwm-0.1.11-libpng14.patch new file mode 100644 index 000000000000..98d394f825eb --- /dev/null +++ b/x11-wm/pekwm/files/pekwm-0.1.11-libpng14.patch @@ -0,0 +1,22 @@ +http://repos.archlinux.org/wsvn/packages/pekwm/trunk/libpng-1.4.patch + +--- src/PImageLoaderPng.cc ++++ src/PImageLoaderPng.cc +@@ -108,7 +108,7 @@ + + // gray -> 8 bit gray + if (color_type == PNG_COLOR_TYPE_GRAY && (bpp < 8)) { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) { +@@ -179,7 +179,7 @@ + + status = fread(sig, 1, PImageLoaderPng::PNG_SIG_BYTES, fp); + if (status == PImageLoaderPng::PNG_SIG_BYTES) { +- return (png_check_sig(sig, PImageLoaderPng::PNG_SIG_BYTES) != 0); ++ return (png_sig_cmp(sig, 0, PImageLoaderPng::PNG_SIG_BYTES) == 0); + } + return false; + } |