Skip to content

Commit

Permalink
ACCESS: Implemented setBufferScan and copyRects
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 13, 2014
1 parent b579dbb commit 483bc1e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
5 changes: 4 additions & 1 deletion engines/access/access.cpp
Expand Up @@ -304,7 +304,10 @@ void AccessEngine::copyBlocks() {
_screen->copyBlock(&_buffer2, _oldRects[i]);
}

// Copy the new block list, replacing the old one at the same time
copyRects();
}

void AccessEngine::copyRects() {
_oldRects.clear();
for (uint i = 0; i < _newRects.size(); ++i) {
_screen->copyBlock(&_buffer2, _newRects[i]);
Expand Down
2 changes: 2 additions & 0 deletions engines/access/access.h
Expand Up @@ -242,6 +242,8 @@ class AccessEngine : public Engine {
void plotList1();

void copyBlocks();

void copyRects();
};

} // End of namespace Access
Expand Down
3 changes: 1 addition & 2 deletions engines/access/room.cpp
Expand Up @@ -123,8 +123,7 @@ void Room::doRoom() {
break;
} else {
_vm->plotList();
_vm->_screen->copyRects();

_vm->copyRects();
_vm->_screen->copyBF2Vid();
}
} else {
Expand Down
9 changes: 4 additions & 5 deletions engines/access/screen.cpp
Expand Up @@ -172,12 +172,11 @@ void Screen::copyBF2Vid() {
warning("TODO");
}

void Screen::copyRects() {
warning("TODO: copyRects");
}

void Screen::setBufferScan() {
warning("TODO: setBufferScan");
_clipWidth = _vm->_room->_vWindowBytesWide - 1;
_windowXAdd = (320 - _clipWidth) >> 1;
_clipHeight = _vm->_room->_vWindowLinesTall - 1;
_windowYAdd = (176 - _clipHeight) >> 1;
}

void Screen::setScaleTable(int scale) {
Expand Down
2 changes: 0 additions & 2 deletions engines/access/screen.h
Expand Up @@ -123,8 +123,6 @@ class Screen: public ASurface {

void copyBF2Vid();

void copyRects();

void setBufferScan();

void setScaleTable(int scale);
Expand Down

0 comments on commit 483bc1e

Please sign in to comment.