From fbb0ddcc34e8e9682f4eaf6afe60fa10c4e9c76a Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Sat, 12 Jul 2003 05:52:28 +0000 Subject: keep virgin logo from flashing up when using -x svn-id: r8928 --- sky/control.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sky/control.cpp') diff --git a/sky/control.cpp b/sky/control.cpp index c398cb2ea5..72c5445e5e 100644 --- a/sky/control.cpp +++ b/sky/control.cpp @@ -1499,6 +1499,9 @@ uint16 SkyControl::quickXRestore(uint16 slot) { _savedCharSet = _skyText->giveCurrentCharSet(); _skyText->fnSetFont(0); + _system->copy_rect(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); + _system->update_screen(); + if (SkyState::_systemVars.gameVersion < 331) _skyScreen->setPalette(60509); else @@ -1517,6 +1520,11 @@ uint16 SkyControl::quickXRestore(uint16 slot) { memset(_skyScreen->giveCurrent(), 0, GAME_SCREEN_WIDTH * GAME_SCREEN_HEIGHT); _skyScreen->showScreen(_skyScreen->giveCurrent()); _skyScreen->forceRefresh(); + } else { + memset(_screenBuf, 0, FULL_SCREEN_WIDTH * FULL_SCREEN_HEIGHT); + _system->copy_rect(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, GAME_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); + _system->update_screen(); + _skyScreen->showScreen(_skyScreen->giveCurrent()); } _skyScreen->setPaletteEndian((uint8 *)SkyState::fetchCompact(SkyState::_systemVars.currentPalette)); _skyMouse->spriteMouse(_savedMouse, 0, 0); -- cgit v1.2.3