From 6670766bb6864c6c016d2cded6d35bd4868a15ad Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Nov 2013 00:24:34 +0100 Subject: [PATCH] (OSX) Simplify NSScreen - bounds --- apple/common/RAGameView.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index bd0a3bc6d1..56ac4133ec 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -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