aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-12 21:40:14 -0400
committerPaul Gilbert2014-08-12 21:40:14 -0400
commit483bc1eb03b54db70d3136f3265fca1989b5b417 (patch)
treea43b6c43587ea1c6d066fcfd52570bd5c8c9ed2f /engines
parentb579dbb71b4aafa533b06589ced928d788a1c2e6 (diff)
downloadscummvm-rg350-483bc1eb03b54db70d3136f3265fca1989b5b417.tar.gz
scummvm-rg350-483bc1eb03b54db70d3136f3265fca1989b5b417.tar.bz2
scummvm-rg350-483bc1eb03b54db70d3136f3265fca1989b5b417.zip
ACCESS: Implemented setBufferScan and copyRects
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);