aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-26 22:07:33 -0400
committerPaul Gilbert2014-06-26 22:07:33 -0400
commit456ce2a678557c7b9e15493448a18be3040efcf7 (patch)
treec5b7ea6742e7524053b9103a59e51d007b0a3437 /engines/mads/screen.cpp
parentbdee71f27922d1ba146323374e4501ec462d687d (diff)
downloadscummvm-rg350-456ce2a678557c7b9e15493448a18be3040efcf7.tar.gz
scummvm-rg350-456ce2a678557c7b9e15493448a18be3040efcf7.tar.bz2
scummvm-rg350-456ce2a678557c7b9e15493448a18be3040efcf7.zip
MADS: Implement the difficulty selection dialog
Diffstat (limited to 'engines/mads/screen.cpp')
-rw-r--r--engines/mads/screen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp
index 7e8710db56..284268648a 100644
--- a/engines/mads/screen.cpp
+++ b/engines/mads/screen.cpp
@@ -212,9 +212,11 @@ void DirtyAreas::copy(MSurface *srcSurface, MSurface *destSurface, const Common:
Common::Rect bounds(srcBounds.left + posAdjust.x, srcBounds.top + posAdjust.y,
srcBounds.right + posAdjust.x, srcBounds.bottom + posAdjust.y);
+ Common::Point destPos(bounds.left + _vm->_screen._offset.x,
+ bounds.top + _vm->_screen._offset.y);
if ((*this)[i]._active && bounds.isValidRect()) {
- srcSurface->copyTo(destSurface, bounds, Common::Point(bounds.left, bounds.top));
+ srcSurface->copyTo(destSurface, bounds, destPos);
}
}
}