diff options
Diffstat (limited to 'engines/access/access.cpp')
-rw-r--r-- | engines/access/access.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index 9fb0287883..29e5188fb3 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -276,7 +276,7 @@ void AccessEngine::plotList1() { || _buffer2._topSkip != 0 || _buffer2._bottomSkip != 0) ie._flags |= 1; - _newRect.push_back(bounds); + _newRects.push_back(bounds); if (!_scaleFlag) { _buffer2._rightSkip /= _scale; @@ -298,4 +298,18 @@ void AccessEngine::plotList1() { } } +void AccessEngine::copyBlocks() { + // Copy the block list from the previous frame + for (uint i = 0; i < _oldRects.size(); ++i) { + _screen->copyBlock(&_buffer2, _oldRects[i]); + } + + // Copy the new block list, replacing the old one at the same time + _oldRects.clear(); + for (uint i = 0; i < _newRects.size(); ++i) { + _screen->copyBlock(&_buffer2, _newRects[i]); + _oldRects.push_back(_newRects[i]); + } +} + } // End of namespace Access |