project_files/HedgewarsMobile/Classes/ExtraCategories.m
branchios-revival
changeset 11140 3fbe54013b2b
parent 11104 eea0481d2ae1
child 11145 1c89970c7f15
equal deleted inserted replaced
11139:4f4e97eb52fd 11140:3fbe54013b2b
    25 #pragma mark -
    25 #pragma mark -
    26 @implementation UIScreen (safe)
    26 @implementation UIScreen (safe)
    27 
    27 
    28 -(CGFloat) safeScale {
    28 -(CGFloat) safeScale {
    29     CGFloat theScale = 1.0f;
    29     CGFloat theScale = 1.0f;
    30     if ([self respondsToSelector:@selector(scale)])
    30 //    if ([self respondsToSelector:@selector(scale)])
    31          theScale = [self scale];
    31 //         theScale = [self scale];
    32     return theScale;
    32     return theScale;
    33 }
    33 }
    34 
    34 
    35 -(CGRect) safeBounds {
    35 -(CGRect) safeBounds {
    36     return [self bounds];
    36     return [self bounds];