From 031b9b8ced1007545099e0e6285ea4bbe1d3e97f Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 26 Apr 2015 15:50:12 +0200 Subject: SCI: restore: clear screen when restoring primarily to clear kPortrait graphics in kq6 when restoring during portrait animation --- engines/sci/engine/savegame.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index e0c2833572..3d934410c3 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -41,6 +41,7 @@ #include "sci/graphics/helpers.h" #include "sci/graphics/palette.h" #include "sci/graphics/ports.h" +#include "sci/graphics/screen.h" #include "sci/parser/vocabulary.h" #include "sci/sound/audio.h" #include "sci/sound/music.h" @@ -923,11 +924,15 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { // We don't need the thumbnail here, so just read it and discard it Graphics::skipThumbnail(*fh); - // reset ports as one of the first things we do, because that may free() some hunk memory + // reset ports is one of the first things we do, because that may free() some hunk memory // and we don't want to do that after we read in the saved game hunk memory if (ser.isLoading()) { + // reset ports if (g_sci->_gfxPorts) g_sci->_gfxPorts->reset(); + // clear screen + if (g_sci->_gfxScreen) + g_sci->_gfxScreen->clear(); } s->reset(true); -- cgit v1.2.3