diff options
author | Torbjörn Andersson | 2015-01-28 06:57:35 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2015-01-28 06:57:35 +0100 |
commit | 2d93a82e8060b2c9d05438c0ba352ad4ca46f1c0 (patch) | |
tree | ad45c214deebe1762eaa5927ea699f4353b4c778 /engines/zvision/file | |
parent | a1a99745f6f120354c0565e96e0636c0d303ed52 (diff) | |
parent | f46af2eded0155a05d0e19717e6c4efd1191dab3 (diff) | |
download | scummvm-rg350-2d93a82e8060b2c9d05438c0ba352ad4ca46f1c0.tar.gz scummvm-rg350-2d93a82e8060b2c9d05438c0ba352ad4ca46f1c0.tar.bz2 scummvm-rg350-2d93a82e8060b2c9d05438c0ba352ad4ca46f1c0.zip |
Merge pull request #577 from Marisa-Chan/master
ZVISION: Fix bug #6787 init lzss window by same values as in original game
Diffstat (limited to 'engines/zvision/file')
-rw-r--r-- | engines/zvision/file/lzss_read_stream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/zvision/file/lzss_read_stream.cpp b/engines/zvision/file/lzss_read_stream.cpp index 6f27eaa765..ca10af7d72 100644 --- a/engines/zvision/file/lzss_read_stream.cpp +++ b/engines/zvision/file/lzss_read_stream.cpp @@ -31,8 +31,9 @@ LzssReadStream::LzssReadStream(Common::SeekableReadStream *source) // It's convention to set the starting cursor position to blockSize - 16 _windowCursor(0x0FEE), _eosFlag(false) { - // Clear the window to null - memset(_window, 0, BLOCK_SIZE); + // All values up to _windowCursor inits by 0x20 + memset(_window, 0x20, _windowCursor); + memset(_window + _windowCursor, 0, BLOCK_SIZE - _windowCursor); } uint32 LzssReadStream::decompressBytes(byte *destination, uint32 numberOfBytes) { |