Skip to content

Commit

Permalink
SCI: Clarify function name
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed May 3, 2015
1 parent cd2ead0 commit 30b5497
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engines/sci/engine/savegame.cpp
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions engines/sci/graphics/screen.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion engines/sci/graphics/screen.h
Expand Up @@ -76,7 +76,7 @@ class GfxScreen {
byte getColorWhite() { return _colorWhite; }
byte getColorDefaultVectorData() { return _colorDefaultVectorData; }

void clear();
void clearForRestoreGame();
void copyToScreen();
void copyFromScreen(byte *buffer);
void kernelSyncWithFramebuffer();
Expand Down

0 comments on commit 30b5497

Please sign in to comment.