project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3976 abaf741a4e21
parent 3948 24daa33a3114
child 3978 9660600e43cb
equal deleted inserted replaced
3975:3f605cca9215 3976:abaf741a4e21
   459         UIDeviceOrientation orientation = (UIDeviceOrientation) [[self.gameConfig objectForKey:@"orientation"] intValue];
   459         UIDeviceOrientation orientation = (UIDeviceOrientation) [[self.gameConfig objectForKey:@"orientation"] intValue];
   460         if (orientation == UIDeviceOrientationLandscapeLeft)
   460         if (orientation == UIDeviceOrientationLandscapeLeft)
   461             rotation = @"-90";
   461             rotation = @"-90";
   462         else
   462         else
   463             rotation = @"90";
   463             rotation = @"90";
   464 
       
   465     }
   464     }
   466         
   465         
   467     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
   466     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
   468     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
   467     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
   469     const char **gameArgs = (const char**) malloc(sizeof(char *) * 10);
   468     const char **gameArgs = (const char**) malloc(sizeof(char *) * 10);