From 94a584c6876c9bf4183e1a8758ef0fd8c67caedf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 20 Nov 2007 19:54:06 +0000 Subject: Cleanup. svn-id: r29583 --- backends/platform/iphone/osys_iphone.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'backends') diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp index 6db6fa2b67..0cc329374a 100644 --- a/backends/platform/iphone/osys_iphone.cpp +++ b/backends/platform/iphone/osys_iphone.cpp @@ -77,8 +77,7 @@ OSystem_IPHONE::~OSystem_IPHONE() { 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 @@ void OSystem_IPHONE::initSize(uint width, uint height) { _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); -- cgit v1.2.3