project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3941 017b2b31e1c6
parent 3935 5ca27a0e9a63
child 3948 24daa33a3114
equal deleted inserted replaced
3940:cc29628976cc 3941:017b2b31e1c6
   440 -(const char **)getSettings: (NSString *)recordFile {
   440 -(const char **)getSettings: (NSString *)recordFile {
   441     NSInteger width, height;
   441     NSInteger width, height;
   442     NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort];
   442     NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort];
   443     NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]];
   443     NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]];
   444     NSString *rotation;
   444     NSString *rotation;
   445     if ([[UIScreen screens] count] > 1) {
   445     if (IS_DUALHEAD()) {
   446         CGRect screenBounds = [[[UIScreen screens] objectAtIndex:1] bounds];
   446         CGRect screenBounds = [[[UIScreen screens] objectAtIndex:1] bounds];
   447         width = (int) screenBounds.size.width;
   447         width = (int) screenBounds.size.width;
   448         height = (int) screenBounds.size.height;
   448         height = (int) screenBounds.size.height;
   449         rotation = @"0";
   449         rotation = @"0";
   450     } else {
   450     } else {