mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Handle OSystem::lockScreen fail in default OSystem::clearScreen implementation.
svn-id: r34276
This commit is contained in:
parent
c41e1d9ded
commit
3ea8f70792
@ -115,7 +115,8 @@ Common::EventManager *OSystem::getEventManager() {
|
||||
|
||||
void OSystem::clearScreen() {
|
||||
Graphics::Surface *screen = lockScreen();
|
||||
memset(screen->pixels, 0, screen->h * screen->pitch);
|
||||
if (screen && screen->pixels)
|
||||
memset(screen->pixels, 0, screen->h * screen->pitch);
|
||||
unlockScreen();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user