aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index db252a95a4..994f58230e 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -424,7 +424,14 @@ void Scene::doFrame() {
}
void Scene::drawElements(bool transitionFlag, bool surfaceFlag) {
+ // Draw any background objects
+ _spriteSlots.drawBackground();
+ // Merge any identified dirty areas
+ _dirtyAreas.merge(1, _dirtyAreas.size());
+
+ // Copy dirty areas to the main display surface
+ _dirtyAreas.copy(&_vm->_screen, &_backgroundSurface, _posAdjust);
}
void Scene::leftClick() {