aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-07-30 14:38:58 -0500
committerrichiesams2013-08-04 13:32:58 -0500
commit8ec0a90611560dcb29d0ceb8fc476408c0de4103 (patch)
treef6055650d3daa4e433d21aca87a691f66774d033
parent903e21b8aff563d50f591289eb454cd65bf09d5d (diff)
downloadscummvm-rg350-8ec0a90611560dcb29d0ceb8fc476408c0de4103.tar.gz
scummvm-rg350-8ec0a90611560dcb29d0ceb8fc476408c0de4103.tar.bz2
scummvm-rg350-8ec0a90611560dcb29d0ceb8fc476408c0de4103.zip
ZVISION: Convert _blockSize to an anonymous enum
-rw-r--r--engines/zvision/lzss_read_stream.cpp2
-rw-r--r--engines/zvision/lzss_read_stream.h7
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/zvision/lzss_read_stream.cpp b/engines/zvision/lzss_read_stream.cpp
index 8518c8fff9..03ab12d8be 100644
--- a/engines/zvision/lzss_read_stream.cpp
+++ b/engines/zvision/lzss_read_stream.cpp
@@ -32,7 +32,7 @@ LzssReadStream::LzssReadStream(Common::SeekableReadStream *source)
_windowCursor(0x0FEE),
_eosFlag(false) {
// Clear the window to null
- memset(_window, 0, _blockSize);
+ memset(_window, 0, BLOCK_SIZE);
}
uint32 LzssReadStream::decompressBytes(byte *destination, uint32 numberOfBytes) {
diff --git a/engines/zvision/lzss_read_stream.h b/engines/zvision/lzss_read_stream.h
index 25bb66339e..25a8b67222 100644
--- a/engines/zvision/lzss_read_stream.h
+++ b/engines/zvision/lzss_read_stream.h
@@ -43,9 +43,10 @@ public:
*/
LzssReadStream(Common::SeekableReadStream *source);
-public:
- static const uint32 _npos = 0xFFFFFFFFu;
- static const uint16 _blockSize = 0x1000u;
+private:
+ enum {
+ BLOCK_SIZE = 0x1000
+ };
private:
Common::SeekableReadStream *_source;