[Scummvm-cvs-logs] SF.net SVN: scummvm:[34276] scummvm/trunk/common/system.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Sep 2 15:11:54 CEST 2008
Revision: 34276
http://scummvm.svn.sourceforge.net/scummvm/?rev=34276&view=rev
Author: lordhoto
Date: 2008-09-02 13:11:54 +0000 (Tue, 02 Sep 2008)
Log Message:
-----------
Handle OSystem::lockScreen fail in default OSystem::clearScreen implementation.
Modified Paths:
--------------
scummvm/trunk/common/system.cpp
Modified: scummvm/trunk/common/system.cpp
===================================================================
--- scummvm/trunk/common/system.cpp 2008-09-02 13:05:43 UTC (rev 34275)
+++ scummvm/trunk/common/system.cpp 2008-09-02 13:11:54 UTC (rev 34276)
@@ -115,7 +115,8 @@
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();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list