From: kramm Date: Thu, 21 Aug 2008 13:38:45 +0000 (+0000) Subject: switched png compression to 'fastest' X-Git-Tag: buttons-working~54 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=969562b8cb5be45ffc45abd110d22102e73732ed switched png compression to 'fastest' --- diff --git a/lib/png.c b/lib/png.c index 8578d2d..09ffe4a 100644 --- a/lib/png.c +++ b/lib/png.c @@ -1082,7 +1082,7 @@ EXPORT void writePNG(const char*filename, unsigned char*data, int width, int hei zs.opaque = Z_NULL; zs.next_out = writebuf; zs.avail_out = ZLIB_BUFFER_SIZE; - ret = deflateInit(&zs, 9); + ret = deflateInit(&zs, 1); if (ret != Z_OK) { fprintf(stderr, "error in deflateInit(): %s", zs.msg?zs.msg:"unknown"); return;