project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 5195 1bfa81f0bc21
parent 5194 851c6fbb44e6
child 5206 db775bddf771
--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Sat Apr 30 20:06:05 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Sun May 01 05:39:52 2011 +0200
@@ -57,10 +57,8 @@
 #pragma mark -
 // overlay with controls, become visible later, with a transparency effect since the sdlwindow is not yet created
 -(void) displayOverlayLater:(id) object {
-    NSDictionary *dict = (NSDictionary *)object;
-
-    [self.overlayController setUseClassicMenu:[[dict objectForKey:@"menu"] boolValue]];
-    [self.overlayController setInitialOrientation:[[dict objectForKey:@"orientation"] intValue]];
+    [self.overlayController setUseClassicMenu:[[self.systemSettings objectForKey:@"menu"] boolValue]];
+    [self.overlayController setInitialOrientation:self.parentController.interfaceOrientation];
 
     UIWindow *gameWindow = (IS_DUALHEAD() ? [HedgewarsAppDelegate sharedAppDelegate].uiwindow : [[UIApplication sharedApplication] keyWindow]);
     [gameWindow addSubview:self.overlayController.view];
@@ -155,12 +153,7 @@
         blackView.alpha = 1;
 
     // prepare options for overlay and add it to the future sdl uiwindow
-    NSDictionary *overlayOptions = [[NSDictionary alloc] initWithObjectsAndKeys:
-                                    [NSNumber numberWithInt:self.parentController.interfaceOrientation],@"orientation",
-                                    [self.systemSettings objectForKey:@"menu"],@"menu",
-                                    nil];
-    [self performSelector:@selector(displayOverlayLater:) withObject:overlayOptions afterDelay:3];
-    [overlayOptions release];
+    [self performSelector:@selector(displayOverlayLater:) withObject:nil afterDelay:3];
 
     // SYSTEMS ARE GO!!
     [self startGameEngine];