aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-03 21:12:14 -0400
committerPaul Gilbert2015-07-03 21:12:14 -0400
commitf387785e57ab1aad0340ea3d207436972c630cf4 (patch)
tree224f1517d595b5e8cb31d0ac970f7c065da6b42b /engines/sherlock/screen.cpp
parent614162e5fc8489324e586b57db46558b4d6c26ef (diff)
downloadscummvm-rg350-f387785e57ab1aad0340ea3d207436972c630cf4.tar.gz
scummvm-rg350-f387785e57ab1aad0340ea3d207436972c630cf4.tar.bz2
scummvm-rg350-f387785e57ab1aad0340ea3d207436972c630cf4.zip
SHERLOCK: RT: Beginnings of scrolling scene support
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r--engines/sherlock/screen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index e20c1b5182..404b3d5984 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -523,8 +523,7 @@ void Screen::vgaBar(const Common::Rect &r, int color) {
}
void Screen::setDisplayBounds(const Common::Rect &r) {
- assert(r.left == 0 && r.top == 0);
- _sceneSurface.setPixels(_backBuffer1.getPixels(), r.width(), r.height(), _backBuffer1.getPixelFormat());
+ _sceneSurface.setPixels(_backBuffer1.getBasePtr(r.left, r.top), r.width(), r.height(), _backBuffer1.getPixelFormat());
_backBuffer = &_sceneSurface;
}