diff options
Diffstat (limited to 'common/system.cpp')
| -rw-r--r-- | common/system.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/common/system.cpp b/common/system.cpp index 2720a19775..f8068d41f5 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -101,3 +101,8 @@ Common::EventManager *OSystem::getEventManager() {  	return s_eventManager;  } +void OSystem::clearScreen() { +	Graphics::Surface *screen = lockScreen(); +	memset(screen->pixels, 0, screen->h * screen->pitch); +	unlockScreen(); +} | 
