# HG changeset patch # User koda # Date 1316030823 -7200 # Node ID 36cf87a4f6ae4790a1aa2eeea3bc7a01113ecfe8 # Parent 6719291070ed6eb4f7692a426b8e419a0da3b907 fix for retina display devices diff -r 6719291070ed -r 36cf87a4f6ae project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m --- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m Wed Sep 14 19:09:59 2011 +0200 +++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m Wed Sep 14 22:07:03 2011 +0200 @@ -78,8 +78,8 @@ height = (int) screenBounds.size.width; } - NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width]; - NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height]; + NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width * (int)getScreenScale()]; + NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height * (int)getScreenScale()]; NSString *rotation = [[NSString alloc] initWithString:@"0"]; NSString *modelId = getModelType(); @@ -88,7 +88,7 @@ tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040; // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"]) // = iPhone 3GS or iPod Touch 3G tmpQuality = 0x00000002 | 0x00000040; // rqBlurryLand | rqKillFlakes - else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"]) // = iPad 1G or iPod Touch 4G + else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"]) // = iPad 1G or iPod Touch 4G tmpQuality = 0x00000002; // rqBlurryLand else // = everything else tmpQuality = 0; // full quality