diff options
author | Filippos Karapetis | 2015-12-13 04:12:29 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:01 +0100 |
commit | 1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9 (patch) | |
tree | 295ceab7ffc73cd3fe179ec3978b52134d0cc096 /engines/lab/anim.cpp | |
parent | a01f0689693363bf7a46ef36c9e3885670fb657b (diff) | |
download | scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.tar.gz scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.tar.bz2 scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.zip |
LAB: Get rid of getTime(), readBlock() and getRandom()
Also, simplify some time-related functions
Diffstat (limited to 'engines/lab/anim.cpp')
-rw-r--r-- | engines/lab/anim.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/lab/anim.cpp b/engines/lab/anim.cpp index 3bed3656d3..ac51860ed7 100644 --- a/engines/lab/anim.cpp +++ b/engines/lab/anim.cpp @@ -141,18 +141,20 @@ void Anim::diffNextFrame(bool onlyDiffData) { switch (_header) { case 8: - _vm->_utils->readBlock(_diffPalette, _size, &_diffFile); + memcpy(_diffPalette, _diffFile, _size); + _diffFile += _size; _isPal = true; break; case 10: _rawDiffBM._planes[_curBit] = _diffFile; - if (onlyDiffData) + if (onlyDiffData) { _diffFile += _size; - else - _vm->_utils->readBlock(DrawBitMap->_planes[_curBit], _size, &_diffFile); - + } else { + memcpy(DrawBitMap->_planes[_curBit], _diffFile, _size); + _diffFile += _size; + } _curBit++; break; |