[Gridflow-cvs] [svn] commit: r5972 - in /trunk: configure src/png.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Aug 6 15:07:38 EDT 2010


Author: matju
Date: Fri Aug  6 15:07:36 2010
New Revision: 5972

Log:
upgrade png support (don't use png_check_sig anymore) -- merci à «willy» (pseudonyme)

Modified:
    trunk/configure
    trunk/src/png.cxx

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Fri Aug  6 15:07:36 2010
@@ -439,7 +439,7 @@
 		int main () {
 		#define T(a) printf("%s:%ld; ",#a,long(sizeof(a)));
 		T(png_uint_32)T(long)puts("");
-		if (!png_check_sig) return 1;
+		if (!png_sig_cmp) return 1;
 		return 0;}`}}
 Feature.add {
 	tag :videodev

Modified: trunk/src/png.cxx
==============================================================================
--- trunk/src/png.cxx (original)
+++ trunk/src/png.cxx Fri Aug  6 15:07:36 2010
@@ -79,7 +79,7 @@
 \def 0 bang () {
 	uint8 sig[8];
 	if (!fread(sig, 1, 8, f)) {outlet_bang(bself->te_outlet); return;}
-	if (!png_check_sig(sig, 8)) RAISE("bad signature");
+	if (png_sig_cmp(sig,0,8)) RAISE("bad signature");
 	png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
 	if (!png) RAISE("!png");
 	info = png_create_info_struct(png);



More information about the Gridflow-cvs mailing list