diff options
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/screen.cpp | 4 | ||||
-rw-r--r-- | engines/sci/graphics/screen.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 8fca7eabca..93b3a997cc 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -923,7 +923,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { g_sci->_gfxPorts->reset(); // clear screen if (g_sci->_gfxScreen) - g_sci->_gfxScreen->clear(); + g_sci->_gfxScreen->clearForRestoreGame(); #ifdef ENABLE_SCI32 // Also clear any SCI32 planes/screen items currently showing so they // don't show up after the load. diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index dfcb5dbc14..ca5b5b3b8c 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -251,8 +251,8 @@ GfxScreen::~GfxScreen() { free(_displayScreen); } -// should not used regulary, only meant for restore game -void GfxScreen::clear() { +// should not be used regularly; only meant for restore game +void GfxScreen::clearForRestoreGame() { // reset all screen data memset(_visualScreen, 0, _pixels); memset(_priorityScreen, 0, _pixels); diff --git a/engines/sci/graphics/screen.h b/engines/sci/graphics/screen.h index 587d2ef3bc..1c946ef02f 100644 --- a/engines/sci/graphics/screen.h +++ b/engines/sci/graphics/screen.h @@ -76,7 +76,7 @@ public: byte getColorWhite() { return _colorWhite; } byte getColorDefaultVectorData() { return _colorDefaultVectorData; } - void clear(); + void clearForRestoreGame(); void copyToScreen(); void copyFromScreen(byte *buffer); void kernelSyncWithFramebuffer(); |