NSWindow: add stub for -backingScaleFactor

Add stub for -[NSWindow backingScaleFactor] for compatibility purposes.
This commit is contained in:
Daniel Ferreira 2017-08-15 11:43:52 +10:00 committed by Ivan Vučica
parent 07d0f2002f
commit 4f4db46c87
2 changed files with 13 additions and 0 deletions

View file

@ -825,6 +825,14 @@ PACKAGE_SCOPE
#endif
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
#if GS_HAS_DECLARED_PROPERTIES
@property (readonly) CGFloat backingScaleFactor;
#else
- (CGFloat) backingScaleFactor;
#endif
#endif
@end
@class NSToolbar;

View file

@ -5658,6 +5658,11 @@ current key view.<br />
return nil;
}
- (CGFloat) backingScaleFactor
{
return 0;
}
@end
@implementation NSWindow (Toolbar)