project_files/HedgewarsMobile/ExtraCategories.m
changeset 6209 074ab6ebcb3e
parent 6208 b831679e9467
child 6210 923c8414e3af
--- a/project_files/HedgewarsMobile/ExtraCategories.m	Tue Oct 25 22:51:10 2011 +0200
+++ b/project_files/HedgewarsMobile/ExtraCategories.m	Wed Oct 26 00:30:35 2011 +0200
@@ -23,6 +23,19 @@
 #import <QuartzCore/QuartzCore.h>
 #import <CommonCrypto/CommonDigest.h>
 
+
+@implementation UIScreen (safe)
+
+-(CGFloat) safeScale {
+    CGFloat theScale = 1.0f;
+    if ([self respondsToSelector:@selector(scale)])
+         theScale = [self scale];
+    return theScale;
+}
+
+@end
+
+
 @implementation UITableView (backgroundColor)
 
 -(void) setBackgroundColorForAnyTable:(UIColor *) color {