diff options
author | Johannes Schickel | 2007-11-20 19:54:06 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-11-20 19:54:06 +0000 |
commit | 94a584c6876c9bf4183e1a8758ef0fd8c67caedf (patch) | |
tree | 01a59045e88e8a43def45aa8c08f81150d31b5f4 | |
parent | f2f5a090405976ecfc48e51051ee14d2484f78c2 (diff) | |
download | scummvm-rg350-94a584c6876c9bf4183e1a8758ef0fd8c67caedf.tar.gz scummvm-rg350-94a584c6876c9bf4183e1a8758ef0fd8c67caedf.tar.bz2 scummvm-rg350-94a584c6876c9bf4183e1a8758ef0fd8c67caedf.zip |
Cleanup.
svn-id: r29583
-rw-r--r-- | backends/platform/iphone/osys_iphone.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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); |