switched png compression to 'fastest'
authorkramm <kramm>
Thu, 21 Aug 2008 13:38:45 +0000 (13:38 +0000)
committerkramm <kramm>
Thu, 21 Aug 2008 13:38:45 +0000 (13:38 +0000)
lib/png.c

index 8578d2d..09ffe4a 100644 (file)
--- 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;