aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorLars Persson2007-03-11 15:37:27 +0000
committerLars Persson2007-03-11 15:37:27 +0000
commit20fce9c87ed1f4682702d92b4b9d5449ef4b9769 (patch)
treeb90d460be755d15394a4bf3ca1ada4782012d5ec /backends/saves
parent29d94a99a5b1a8cb2bbc9a5afd301617e055ea8f (diff)
downloadscummvm-rg350-20fce9c87ed1f4682702d92b4b9d5449ef4b9769.tar.gz
scummvm-rg350-20fce9c87ed1f4682702d92b4b9d5449ef4b9769.tar.bz2
scummvm-rg350-20fce9c87ed1f4682702d92b4b9d5449ef4b9769.zip
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
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/compressed/compressed-saves.cpp4
1 files changed, 2 insertions, 2 deletions
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);