diff options
Diffstat (limited to 'engines/sword1/screen.cpp')
-rw-r--r-- | engines/sword1/screen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp index 26672b3a3c..57a9b6137c 100644 --- a/engines/sword1/screen.cpp +++ b/engines/sword1/screen.cpp @@ -64,6 +64,14 @@ Screen::~Screen(void) { quitScreen(); } +void Screen::clearScreen(void) { + if (_screenBuf) { + _fullRefresh = true; + memset(_screenBuf, 0, _scrnSizeX * _scrnSizeY); + _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480); + } +} + void Screen::useTextManager(Text *pTextMan) { _textMan = pTextMan; } |