project_files/HedgewarsMobile/Classes/CommodityFunctions.h
changeset 3941 017b2b31e1c6
parent 3930 8b00b4f93242
child 3971 5c82ee165ed5
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Sun Oct 10 02:06:42 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Sun Oct 10 03:16:25 2010 +0200
@@ -51,14 +51,17 @@
 #define UICOLOR_HW_YELLOW_TEXT  [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1]
 #define UICOLOR_HW_DARKBLUE     [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1]
 
+#define IS_DUALHEAD()           ([[UIScreen screens] count] > 1)
+
+
 void createTeamNamed (NSString *nameWithoutExt);
 void createWeaponNamed (NSString *nameWithoutExt, int type);
 void createSchemeNamed (NSString *nameWithoutExt);
-void print_free_memory ();
+void print_free_memory (void);
 void playSound (NSString *snd);
 void popError (const char *title, const char *message);
 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
-BOOL isApplePhone ();
-NSInteger randomPort ();
-NSString *modelType ();
-NSArray *getAvailableColors(void);
+BOOL isApplePhone (void);
+NSInteger randomPort (void);
+NSString *modelType (void);
+NSArray *getAvailableColors (void);