From 20fce9c87ed1f4682702d92b4b9d5449ef4b9769 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Sun, 11 Mar 2007 15:37:27 +0000 Subject: Adding extra wbits is not supported by all versions of zlib. If they should be present, please indicate which version of zlib that is required for correct operation. svn-id: r26092 --- backends/saves/compressed/compressed-saves.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp index 14a77e6617..e987b0de59 100644 --- a/backends/saves/compressed/compressed-saves.cpp +++ b/backends/saves/compressed/compressed-saves.cpp @@ -77,7 +77,7 @@ public: // Adding 32 to windowBits indicates to zlib that it is supposed to // automatically detect whether gzip or zlib headers are used for // the compressed file. - _zlibErr = inflateInit2(&_stream, MAX_WBITS + 32); + _zlibErr = inflateInit2(&_stream, MAX_WBITS); if (_zlibErr != Z_OK) return; @@ -201,7 +201,7 @@ public: _zlibErr = deflateInit2(&_stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, - MAX_WBITS + 16, + MAX_WBITS, 8, Z_DEFAULT_STRATEGY); assert(_zlibErr == Z_OK); -- cgit v1.2.3