summaryrefslogtreecommitdiffstats
path: root/extra/fltk/libpng14.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-04-29 20:03:53 +0200
committertnut <thierryn1 at hispeed dot ch>2010-04-29 20:03:53 +0200
commited718bd19790a9901e0107026dfac3294ba64a8c (patch)
treebb95cb0a1a826674002f703c8f6af59a3544e898 /extra/fltk/libpng14.patch
parent0bfb0714305c87926d9be0cf216c42a0a9cf0be5 (diff)
downloadnutyx-pakxe-ed718bd19790a9901e0107026dfac3294ba64a8c.tar.gz
nutyx-pakxe-ed718bd19790a9901e0107026dfac3294ba64a8c.tar.bz2
nutyx-pakxe-ed718bd19790a9901e0107026dfac3294ba64a8c.tar.xz
nutyx-pakxe-ed718bd19790a9901e0107026dfac3294ba64a8c.zip
maj fltk#r7513-1
Diffstat (limited to 'extra/fltk/libpng14.patch')
-rw-r--r--extra/fltk/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/fltk/libpng14.patch b/extra/fltk/libpng14.patch
new file mode 100644
index 000000000..f6c49228e
--- /dev/null
+++ b/extra/fltk/libpng14.patch
@@ -0,0 +1,12 @@
+diff -upr fltk-2.0.x-r6829.orig/images/fl_png.cxx fltk-2.0.x-r6829/images/fl_png.cxx
+--- fltk-2.0.x-r6829.orig/images/fl_png.cxx 2010-01-23 04:42:12.000000000 +0200
++++ fltk-2.0.x-r6829/images/fl_png.cxx 2010-01-23 04:58:31.000000000 +0200
+@@ -62,7 +62,7 @@ bool pngImage::test(const uchar* datas,
+ #if !HAVE_LIBPNG
+ return 0;
+ #else
+- return png_check_sig((png_byte*)datas, (int)size)!=0;
++ return png_sig_cmp((png_byte*)datas, 0, (int)size)==0;
+ #endif
+ }
+