project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 5664 dfc574d7f49e
parent 5662 99083392cd4f
child 5696 972bf04d4a79
equal deleted inserted replaced
5662:99083392cd4f 5664:dfc574d7f49e
    80     }
    80     }
    81 
    81 
    82     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
    82     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
    83     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
    83     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
    84     NSString *rotation = [[NSString alloc] initWithString:@"0"];
    84     NSString *rotation = [[NSString alloc] initWithString:@"0"];
    85     BOOL enhanced = [[settings objectForKey:@"enhanced"] boolValue];
       
    86 
    85 
    87     NSString *modelId = getModelType();
    86     NSString *modelId = getModelType();
    88     NSInteger tmpQuality;
    87     NSInteger tmpQuality;
    89     if ([modelId hasPrefix:@"iPhone1"] || [modelId hasPrefix:@"iPod1,1"] || [modelId hasPrefix:@"iPod2,1"])     // = iPhone and iPhone 3G or iPod Touch or iPod Touch 2G
    88     if ([modelId hasPrefix:@"iPhone1"] || [modelId hasPrefix:@"iPod1,1"] || [modelId hasPrefix:@"iPod2,1"])     // = iPhone and iPhone 3G or iPod Touch or iPod Touch 2G
    90         tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040;                 // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes
    89         tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040;                 // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes
    91     else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"])                                    // = iPhone 3GS or iPod Touch 3G
    90     else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"])                                    // = iPhone 3GS or iPod Touch 3G
    92         tmpQuality = 0x00000002 | 0x00000040;                                           // rqBlurryLand | rqKillFlakes
    91         tmpQuality = 0x00000002 | 0x00000040;                                           // rqBlurryLand | rqKillFlakes
    93     else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"] || enhanced == NO)                    // = iPad 1G or iPod Touch 4G or not enhanced mode
    92     else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"])                    // = iPad 1G or iPod Touch 4G
    94         tmpQuality = 0x00000002;                                                        // rqBlurryLand
    93         tmpQuality = 0x00000002;                                                        // rqBlurryLand
    95     else                                                                                                        // = everything else
    94     else                                                                                                        // = everything else
    96         tmpQuality = 0;                                                                 // full quality
    95         tmpQuality = 0;                                                                 // full quality
    97 
    96 
    98     // disable tooltips on iPhone
    97     // disable tooltips on iPhone