project_files/HedgewarsMobile/Classes/DefinesAndMacros.h
changeset 6671 5532d5f6285c
parent 6624 e049b5bb0ad1
child 6700 e04da46ee43c
equal deleted inserted replaced
6670:d57fa21781ea 6671:5532d5f6285c
    73 
    73 
    74 #define MSG_MEMCLEAN()          DLog(@"has cleaned up some memory");
    74 #define MSG_MEMCLEAN()          DLog(@"has cleaned up some memory");
    75 #define MSG_DIDUNLOAD()         DLog(@"unloaded");
    75 #define MSG_DIDUNLOAD()         DLog(@"unloaded");
    76 
    76 
    77 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    77 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
       
    78 #define IS_ON_PORTRAIT()        (IS_IPAD() && UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
    78 #define IS_NOT_POWERFUL(x)      ([x hasPrefix:@"iPhone1"] || [x hasPrefix:@"iPod1,1"] || [x hasPrefix:@"iPod2,1"])
    79 #define IS_NOT_POWERFUL(x)      ([x hasPrefix:@"iPhone1"] || [x hasPrefix:@"iPod1,1"] || [x hasPrefix:@"iPod2,1"])
    79 #define IS_NOT_VERY_POWERFUL(x) ([x hasPrefix:@"iPad1"] || [x hasPrefix:@"iPhone2"] || [x hasPrefix:@"iPod3"] || [x hasPrefix:@"iPod4"])
    80 #define IS_NOT_VERY_POWERFUL(x) ([x hasPrefix:@"iPad1"] || [x hasPrefix:@"iPhone2"] || [x hasPrefix:@"iPod3"] || [x hasPrefix:@"iPod4"])
    80 #define IS_VERY_POWERFUL(x)     (IS_NOT_POWERFUL(x) == NO && IS_NOT_VERY_POWERFUL(x) == NO)
    81 #define IS_VERY_POWERFUL(x)     (IS_NOT_POWERFUL(x) == NO && IS_NOT_VERY_POWERFUL(x) == NO)
    81 
    82