aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2014-10-18 20:12:42 +0300
committerFilippos Karapetis2014-10-18 20:12:42 +0300
commitf0bcacc7b3ad9bc5bb88b9b7db8d36977e96fa08 (patch)
treea3376902b961457d4139c56028df9b7e8c36d29c
parentdbfe4972e3a3e1d59aee8993697028cdd2de8da2 (diff)
downloadscummvm-rg350-f0bcacc7b3ad9bc5bb88b9b7db8d36977e96fa08.tar.gz
scummvm-rg350-f0bcacc7b3ad9bc5bb88b9b7db8d36977e96fa08.tar.bz2
scummvm-rg350-f0bcacc7b3ad9bc5bb88b9b7db8d36977e96fa08.zip
MADS: Reset screen clip bounds before copying over a new screen
This is needed for the in-game menu, where a dialog spawns another one
-rw-r--r--engines/mads/dialogs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mads/dialogs.cpp b/engines/mads/dialogs.cpp
index 5ea8fb115c..5e38f34fc6 100644
--- a/engines/mads/dialogs.cpp
+++ b/engines/mads/dialogs.cpp
@@ -457,6 +457,7 @@ void FullScreenDialog::display() {
_vm->_palette->setLowRange();
_vm->_screen.hLine(0, 20, MADS_SCREEN_WIDTH, 2);
_vm->_screen.hLine(0, 179, MADS_SCREEN_WIDTH, 2);
+ _vm->_screen.resetClipBounds();
_vm->_screen.copyRectToScreen(Common::Rect(0, 0, MADS_SCREEN_WIDTH, MADS_SCREEN_HEIGHT));
// Restrict the screen to the area between the two lines