project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 5207 4c9ae0f484da
parent 5206 db775bddf771
child 5220 76a2246f18f0
equal deleted inserted replaced
5206:db775bddf771 5207:4c9ae0f484da
    84     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
    84     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
    85     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
    85     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
    86     NSString *rotation = [[NSString alloc] initWithFormat:@"%d", orientation];
    86     NSString *rotation = [[NSString alloc] initWithFormat:@"%d", orientation];
    87     BOOL enhanced = [[settings objectForKey:@"enhanced"] boolValue];
    87     BOOL enhanced = [[settings objectForKey:@"enhanced"] boolValue];
    88 
    88 
    89     NSString *modelId = modelType();
    89     NSString *modelId = getModelType();
    90     NSInteger tmpQuality;
    90     NSInteger tmpQuality;
    91     if ([modelId hasPrefix:@"iPhone1"] || [modelId hasPrefix:@"iPod1,1"] || [modelId hasPrefix:@"iPod2,1"])     // = iPhone and iPhone 3G or iPod Touch or iPod Touch 2G
    91     if ([modelId hasPrefix:@"iPhone1"] || [modelId hasPrefix:@"iPod1,1"] || [modelId hasPrefix:@"iPod2,1"])     // = iPhone and iPhone 3G or iPod Touch or iPod Touch 2G
    92         tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040;                 // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes
    92         tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040;                 // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes
    93     else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"])                                    // = iPhone 3GS or iPod Touch 3G
    93     else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"])                                    // = iPhone 3GS or iPod Touch 3G
    94         tmpQuality = 0x00000002 | 0x00000040;                                           // rqBlurryLand | rqKillFlakes
    94         tmpQuality = 0x00000002 | 0x00000040;                                           // rqBlurryLand | rqKillFlakes