project_files/HedgewarsMobile/Classes/ExtraCategories.m
changeset 6670 d57fa21781ea
parent 6615 65602f1ef0f8
child 6671 5532d5f6285c
--- a/project_files/HedgewarsMobile/Classes/ExtraCategories.m	Sat Feb 11 06:11:19 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/ExtraCategories.m	Sat Feb 11 19:24:09 2012 +0100
@@ -36,11 +36,9 @@
 
 -(CGRect) safeBounds {
     CGRect original = [self bounds];
-    if (IS_IPAD() &&
-        ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait ||
-         [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortraitUpsideDown) ) {
+    if (IS_IPAD() && UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
         return original;
-    } else
+    else
         return CGRectMake(original.origin.x, original.origin.y, original.size.height, original.size.width);
 }