mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(OSX) Snow Leopard backwards compatibility - NSScreen implementation -
bounds function - first convert NSRect to CGRect, then use CGRectGet* functions on them
This commit is contained in:
parent
fad421e381
commit
c49e9b51af
@ -47,7 +47,12 @@
|
||||
|
||||
@interface NSScreen (IOSCompat) @end
|
||||
@implementation NSScreen (IOSCompat)
|
||||
- (CGRect)bounds { return CGRectMake(0, 0, CGRectGetWidth(self.frame), CGRectGetHeight(self.frame)); }
|
||||
- (CGRect)bounds
|
||||
{
|
||||
CGRect rect_width = NSRectToCGRect(self.frame);
|
||||
CGRect rect_height = NSRectToCGRect(self.frame);
|
||||
return CGRectMake(0, 0, CGRectGetWidth(rect_width), CGRectGetHeight(rect_height));
|
||||
}
|
||||
- (float) scale { return 1.0f; }
|
||||
@end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user