(OSX) Simplify NSScreen - bounds

This commit is contained in:
twinaphex 2013-11-09 00:24:34 +01:00
parent c49e9b51af
commit 6670766bb6

View File

@ -49,9 +49,8 @@
@implementation NSScreen (IOSCompat)
- (CGRect)bounds
{
CGRect rect_width = NSRectToCGRect(self.frame);
CGRect rect_height = NSRectToCGRect(self.frame);
return CGRectMake(0, 0, CGRectGetWidth(rect_width), CGRectGetHeight(rect_height));
CGRect cgrect = NSRectToCGRect(self.frame);
return CGRectMake(0, 0, CGRectGetWidth(cgrect), CGRectGetHeight(cgrect));
}
- (float) scale { return 1.0f; }
@end