project_files/HedgewarsMobile/Classes/CommodityFunctions.h
changeset 4082 bfe14b38dad1
parent 4000 ddc4a09889e7
child 4098 40df542b5f62
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Mon Nov 01 13:02:39 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Mon Nov 01 18:51:38 2010 +0100
@@ -53,9 +53,10 @@
 #define UICOLOR_HW_DARKBLUE     [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1]
 #define UICOLOR_HW_ALPHABLUE    [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:0.58f]
 
-#define IS_DUALHEAD()           ([[UIScreen screens] count] > 1)
+#define IS_DUALHEAD()           ([UIScreen respondsToSelector:@selector(screens)] && [[UIScreen screens] count] > 1)
 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
-
+#define IS_NOT_POWERFUL()       ([modelType() hasPrefix:@"iPhone1"] || [modelType() hasPrefix:@"iPod1,1"] || [modelType() hasPrefix:@"iPod2,1"])
+    
 #define DEFAULT_NETGAME_PORT    46631