aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/dialogs/dialogs_party.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/xeen/dialogs/dialogs_party.cpp b/engines/xeen/dialogs/dialogs_party.cpp
index cf49007f30..824f45fcc8 100644
--- a/engines/xeen/dialogs/dialogs_party.cpp
+++ b/engines/xeen/dialogs/dialogs_party.cpp
@@ -207,6 +207,10 @@ void PartyDialog::execute() {
if (_charList.size() == XEEN_TOTAL_CHARACTERS) {
ErrorScroll::show(_vm, Res.YOUR_ROSTER_IS_FULL);
} else {
+ // Save Background
+ Graphics::ManagedSurface savedBg;
+ savedBg.copyFrom(screen);
+
screen.fadeOut();
w.close();
@@ -215,7 +219,12 @@ void PartyDialog::execute() {
party.copyPartyToRoster();
//_vm->_saves->writeCharFile();
+
+ // Restore Background
screen.fadeOut();
+ screen.blitFrom(savedBg);
+ windows[0].update();
+
modeFlag = true;
breakFlag = true;
}