From fae20a521d8326fe5e1a2bd07375c1cdd0a34066 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 12 Nov 2008 10:38:48 +0000 Subject: [PATCH] don't use filtermodes>0 --- lib/png.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/png.c b/lib/png.c index d40d3e4..c30f77e 100644 --- a/lib/png.c +++ b/lib/png.c @@ -1344,8 +1344,7 @@ EXPORT void savePNG(const char*filename, unsigned char*data, int width, int heig { int filtermode; int bestsize = 0x7fffffff; - for(filtermode=0;filtermode<=5;filtermode++) { - + for(filtermode=0;filtermode<=0;filtermode++) { if(!y && filtermode>=2) continue; // don't do y direction filters in the first row -- 1.7.10.4