project_files/HedgewarsMobile/Classes/ExtraCategories.m
changeset 6670 d57fa21781ea
parent 6615 65602f1ef0f8
child 6671 5532d5f6285c
equal deleted inserted replaced
6669:3933198e2b28 6670:d57fa21781ea
    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() &&
    39     if (IS_IPAD() && UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
    40         ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait ||
       
    41          [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortraitUpsideDown) ) {
       
    42         return original;
    40         return original;
    43     } else
    41     else
    44         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);
    45 }
    43 }
    46 
    44 
    47 @end
    45 @end
    48 
    46