diff options
author | Filippos Karapetis | 2016-01-08 01:59:29 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-01-08 02:01:28 +0200 |
commit | e3b9f726a1361d60cf693429095950826766fe93 (patch) | |
tree | 7ba293824d08378d03ed24bccc9897cc8773fb3b /engines/lab/anim.cpp | |
parent | 5b5efd4cbe4a592c654788c612f7229ee45822a0 (diff) | |
download | scummvm-rg350-e3b9f726a1361d60cf693429095950826766fe93.tar.gz scummvm-rg350-e3b9f726a1361d60cf693429095950826766fe93.tar.bz2 scummvm-rg350-e3b9f726a1361d60cf693429095950826766fe93.zip |
LAB: Remove superfluous class variables
Diffstat (limited to 'engines/lab/anim.cpp')
-rw-r--r-- | engines/lab/anim.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/lab/anim.cpp b/engines/lab/anim.cpp index 01ca905cee..6e2f6fd81d 100644 --- a/engines/lab/anim.cpp +++ b/engines/lab/anim.cpp @@ -62,8 +62,6 @@ Anim::Anim(LabEngine *vm) : _vm(vm) { _stopPlayingEnd = false; _sampleSpeed = 0; _doBlack = false; - _diffWidth = 0; - _diffHeight = 0; for (int i = 0; i < 3 * 256; i++) _diffPalette[i] = 0; @@ -97,7 +95,7 @@ void Anim::diffNextFrame(bool onlyDiffData) { startOfBuf = _vm->_graphics->getCurrentDrawingBuffer(); drawOnScreen = true; } - byte *endOfBuf = startOfBuf + (int)_diffWidth * _diffHeight; + byte *endOfBuf = startOfBuf + (int)_headerdata._width * _headerdata._height; int curBit = 0; @@ -328,9 +326,7 @@ void Anim::readDiff(Common::File *diffFile, bool playOnce, bool onlyDiffData) { _diffFile->skip(_size - 18); _continuous = CONTINUOUS & _headerdata._flags; - _diffWidth = _headerdata._width; - _diffHeight = _headerdata._height; - _vm->_utils->setBytesPerRow(_diffWidth); + _vm->_utils->setBytesPerRow(_headerdata._width); delete[] _scrollScreenBuffer; _scrollScreenBuffer = nullptr; |