[Scummvm-cvs-logs] SF.net SVN: scummvm: [29583] scummvm/trunk/backends/platform/iphone/ osys_iphone.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Nov 20 20:54:06 CET 2007


Revision: 29583
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29583&view=rev
Author:   lordhoto
Date:     2007-11-20 11:54:06 -0800 (Tue, 20 Nov 2007)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/iphone/osys_iphone.cpp

Modified: scummvm/trunk/backends/platform/iphone/osys_iphone.cpp
===================================================================
--- scummvm/trunk/backends/platform/iphone/osys_iphone.cpp	2007-11-20 19:42:41 UTC (rev 29582)
+++ scummvm/trunk/backends/platform/iphone/osys_iphone.cpp	2007-11-20 19:54:06 UTC (rev 29583)
@@ -77,8 +77,7 @@
 	delete _fullscreen;
 }
 
-int OSystem_IPHONE::timerHandler(int t)
-{
+int OSystem_IPHONE::timerHandler(int t) {
 	DefaultTimerManager *tm = (DefaultTimerManager *)g_system->getTimerManager();
 	tm->handler();
 	return t;
@@ -135,21 +134,18 @@
 	_screenWidth = width;
 	_screenHeight = height;
 
-	if (_offscreen)
-		free(_offscreen);
+	free(_offscreen);
 	
 	_offscreen = (byte *)malloc(width * height);
 	bzero(_offscreen, width * height);
 
-	if (_overlayBuffer)
-		free(_overlayBuffer);
+	free(_overlayBuffer);
 
 	int fullSize = _screenWidth * _screenHeight * sizeof(OverlayColor);
 	_overlayBuffer = (OverlayColor *)malloc(fullSize);
 	clearOverlay();
 	
-	if (_fullscreen)
-		free(_fullscreen);
+	free(_fullscreen);
 
 	_fullscreen = (uint16 *)malloc(fullSize);
 	bzero(_fullscreen, fullSize);


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