mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
NSWindow: add stub for -backingScaleFactor
Add stub for -[NSWindow backingScaleFactor] for compatibility purposes.
This commit is contained in:
parent
07d0f2002f
commit
4f4db46c87
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -5658,6 +5658,11 @@ current key view.<br />
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (CGFloat) backingScaleFactor
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSWindow (Toolbar)
|
||||
|
|
Loading…
Reference in a new issue