From 0fbd5d81ae984f2eb13f678efbfd4f2a67fef1b9 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 21 May 2012 03:43:15 +0200 Subject: [PATCH] Don't use internal zlib headers. Thanks Henrik Holst for pointing. --- BBGE/DeflateCompressor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BBGE/DeflateCompressor.cpp b/BBGE/DeflateCompressor.cpp index 13e92d2..012148e 100644 --- a/BBGE/DeflateCompressor.cpp +++ b/BBGE/DeflateCompressor.cpp @@ -1,6 +1,5 @@ #include "Base.h" -#include #include #include "DeflateCompressor.h" @@ -39,7 +38,7 @@ void DeflateCompressor::compress(void* dst, uint32 *dst_size, const void* src, u c_stream.zfree = (free_func)Z_NULL; c_stream.opaque = (voidpf)Z_NULL; - if (Z_OK != deflateInit2(&c_stream, level, Z_DEFLATED, wbits, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY)) + if (Z_OK != deflateInit2(&c_stream, level, Z_DEFLATED, wbits, 8, Z_DEFAULT_STRATEGY)) { *dst_size = 0; return;