equal
deleted
inserted
replaced
145 [UIView setAnimationDuration:1]; |
145 [UIView setAnimationDuration:1]; |
146 refBlackView.alpha = 0; |
146 refBlackView.alpha = 0; |
147 refSecondBlackView.alpha = 0; |
147 refSecondBlackView.alpha = 0; |
148 [UIView commitAnimations]; |
148 [UIView commitAnimations]; |
149 [refBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
149 [refBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
150 [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
150 [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2]; |
151 } |
151 } |
152 |
152 |
153 // overlay with controls, become visible later, with a transparency effect |
153 // overlay with controls, become visible later, with a transparency effect |
154 -(void) displayOverlayLater:(id) object { |
154 -(void) displayOverlayLater:(id) object { |
155 NSDictionary *dict = (NSDictionary *)object; |
155 NSDictionary *dict = (NSDictionary *)object; |
161 if (IS_DUALHEAD()) |
161 if (IS_DUALHEAD()) |
162 gameWindow = self.uiwindow; |
162 gameWindow = self.uiwindow; |
163 else |
163 else |
164 gameWindow = [[UIApplication sharedApplication] keyWindow]; |
164 gameWindow = [[UIApplication sharedApplication] keyWindow]; |
165 [gameWindow addSubview:overlayController.view]; |
165 [gameWindow addSubview:overlayController.view]; |
166 [overlayController release]; |
166 //[[[gameWindow subviews] objectAtIndex:0] addSubview:overlayController.view]; |
|
167 // don't release a controller according to http://developer.apple.com/library/ios/#qa/qa2010/qa1688.html |
|
168 //[overlayController release]; |
167 } |
169 } |
168 |
170 |
169 // override the direct execution of SDL_main to allow us to implement the frontend (or even using a nib) |
171 // override the direct execution of SDL_main to allow us to implement the frontend (or even using a nib) |
170 -(void) applicationDidFinishLaunching:(UIApplication *)application { |
172 -(void) applicationDidFinishLaunching:(UIApplication *)application { |
171 [application setStatusBarHidden:YES]; |
173 [application setStatusBarHidden:YES]; |