project_files/HedgewarsMobile/Classes/ExtraCategories.m
changeset 6671 5532d5f6285c
parent 6670 d57fa21781ea
child 6700 e04da46ee43c
equal deleted inserted replaced
6670:d57fa21781ea 6671:5532d5f6285c
    34     return theScale;
    34     return theScale;
    35 }
    35 }
    36 
    36 
    37 -(CGRect) safeBounds {
    37 -(CGRect) safeBounds {
    38     CGRect original = [self bounds];
    38     CGRect original = [self bounds];
    39     if (IS_IPAD() && UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
    39     if (IS_ON_PORTRAIT())
    40         return original;
    40         return original;
    41     else
    41     else
    42         return CGRectMake(original.origin.x, original.origin.y, original.size.height, original.size.width);
    42         return CGRectMake(original.origin.x, original.origin.y, original.size.height, original.size.width);
    43 }
    43 }
    44 
    44