project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 6624 e049b5bb0ad1
parent 6615 65602f1ef0f8
child 6656 6aeaba3ee584
--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Sat Feb 04 23:06:22 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Sun Feb 05 15:52:26 2012 +0100
@@ -123,15 +123,9 @@
     NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt",[[NSLocale preferredLanguages] objectAtIndex:0]];
     NSUserDefaults *settings = [NSUserDefaults standardUserDefaults];
 
-    if (IS_DUALHEAD()) {
-        CGRect screenBounds = [[[UIScreen screens] objectAtIndex:1] bounds];
-        width = screenBounds.size.width;
-        height = screenBounds.size.height;
-    } else {
-        CGRect screenBounds = [[UIScreen mainScreen] safeBounds];
-        width = screenBounds.size.width;
-        height = screenBounds.size.height;
-    }
+    CGRect screenBounds = [[UIScreen mainScreen] safeBounds];
+    width = screenBounds.size.width;
+    height = screenBounds.size.height;
 
     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", (int)(width * screenScale)];
     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", (int)(height * screenScale)];