[Scummvm-git-logs] scummvm master -> 1cdbec7da3a4441833207140ac55f25dcd3bca00

dreammaster dreammaster at scummvm.org
Wed Jul 18 02:13:18 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1cdbec7da3 XEEN: fix broken screen after character creation


Commit: 1cdbec7da3a4441833207140ac55f25dcd3bca00
    https://github.com/scummvm/scummvm/commit/1cdbec7da3a4441833207140ac55f25dcd3bca00
Author: Henrik Kretzschmar (henne at nachtwindheim.de)
Date: 2018-07-17T17:13:14-07:00

Commit Message:
XEEN: fix broken screen after character creation

Changed paths:
    engines/xeen/dialogs/dialogs_party.cpp


diff --git a/engines/xeen/dialogs/dialogs_party.cpp b/engines/xeen/dialogs/dialogs_party.cpp
index cf49007..824f45f 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;
 				}





More information about the Scummvm-git-logs mailing list