project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3941 017b2b31e1c6
parent 3935 5ca27a0e9a63
child 3948 24daa33a3114
--- a/project_files/HedgewarsMobile/Classes/GameSetup.m	Sun Oct 10 02:06:42 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameSetup.m	Sun Oct 10 03:16:25 2010 +0200
@@ -442,7 +442,7 @@
     NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort];
     NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]];
     NSString *rotation;
-    if ([[UIScreen screens] count] > 1) {
+    if (IS_DUALHEAD()) {
         CGRect screenBounds = [[[UIScreen screens] objectAtIndex:1] bounds];
         width = (int) screenBounds.size.width;
         height = (int) screenBounds.size.height;