aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/access/access.cpp5
-rw-r--r--engines/access/access.h2
-rw-r--r--engines/access/room.cpp3
-rw-r--r--engines/access/screen.cpp9
-rw-r--r--engines/access/screen.h2
5 files changed, 11 insertions, 10 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp
index 29e5188fb3..75a3b8d47b 100644
--- a/engines/access/access.cpp
+++ b/engines/access/access.cpp
@@ -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]);
diff --git a/engines/access/access.h b/engines/access/access.h
index 3cd98f0c45..4efe1b4349 100644
--- a/engines/access/access.h
+++ b/engines/access/access.h
@@ -242,6 +242,8 @@ public:
void plotList1();
void copyBlocks();
+
+ void copyRects();
};
} // End of namespace Access
diff --git a/engines/access/room.cpp b/engines/access/room.cpp
index d3f0f8ff06..22ced20f08 100644
--- a/engines/access/room.cpp
+++ b/engines/access/room.cpp
@@ -123,8 +123,7 @@ void Room::doRoom() {
break;
} else {
_vm->plotList();
- _vm->_screen->copyRects();
-
+ _vm->copyRects();
_vm->_screen->copyBF2Vid();
}
} else {
diff --git a/engines/access/screen.cpp b/engines/access/screen.cpp
index 9cefa356ef..d450cc1067 100644
--- a/engines/access/screen.cpp
+++ b/engines/access/screen.cpp
@@ -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) {
diff --git a/engines/access/screen.h b/engines/access/screen.h
index 670da8282d..875b665c18 100644
--- a/engines/access/screen.h
+++ b/engines/access/screen.h
@@ -123,8 +123,6 @@ public:
void copyBF2Vid();
- void copyRects();
-
void setBufferScan();
void setScaleTable(int scale);