diff options
author | Oystein Eftevaag | 2008-07-27 10:15:57 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2008-07-27 10:15:57 +0000 |
commit | 5ca78661b1f57aee500a4d9e5d6a22b5c3e17731 (patch) | |
tree | d51abf7483695f086a8d9563e0c08ddaeb28c443 /backends/platform/iphone/iphone_main.m | |
parent | b9d0e4dafb82a6481dc6a16d834edb9f017e4e26 (diff) | |
download | scummvm-rg350-5ca78661b1f57aee500a4d9e5d6a22b5c3e17731.tar.gz scummvm-rg350-5ca78661b1f57aee500a4d9e5d6a22b5c3e17731.tar.bz2 scummvm-rg350-5ca78661b1f57aee500a4d9e5d6a22b5c3e17731.zip |
The iPhone backend is now (mostly) up to speed again, and works for firmware 2.0
svn-id: r33326
Diffstat (limited to 'backends/platform/iphone/iphone_main.m')
-rw-r--r-- | backends/platform/iphone/iphone_main.m | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/backends/platform/iphone/iphone_main.m b/backends/platform/iphone/iphone_main.m index f7f5667bb5..b01e9f3f34 100644 --- a/backends/platform/iphone/iphone_main.m +++ b/backends/platform/iphone/iphone_main.m @@ -46,9 +46,14 @@ int main(int argc, char** argv) { gArgc = argc; gArgv = argv; - [[NSAutoreleasePool alloc] init]; - - return UIApplicationMain(argc, argv, [iPhoneMain class]); + NSAutoreleasePool *autoreleasePool = [ + [ NSAutoreleasePool alloc ] init + ]; + + UIApplicationUseLegacyEvents(1); + int returnCode = UIApplicationMain(argc, argv, [iPhoneMain class]); + [ autoreleasePool release ]; + return returnCode; } @implementation iPhoneMain @@ -74,7 +79,10 @@ int main(int argc, char** argv) { - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // hide the status bar [UIHardware _setStatusBarHeight:0.0f]; - [self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0]; + //[self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0]; + + //[self setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO]; + [self setStatusBarHidden:YES animated:YES]; _window = [[UIWindow alloc] initWithContentRect: [UIHardware fullScreenApplicationContentRect]]; [_window retain]; @@ -96,7 +104,7 @@ int main(int argc, char** argv) { - (void)applicationResume:(GSEventRef)event { [self removeApplicationBadge]; [UIHardware _setStatusBarHeight:0.0f]; - [self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0]; + [self setStatusBarHidden:YES animated:YES]; [_view applicationResume]; } |