mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Fixed compilation with macOS SDK earlier than 10.7
This commit is contained in:
parent
7e0c870d0f
commit
4001e7e6bd
2 changed files with 20 additions and 2 deletions
|
@ -184,14 +184,19 @@ typedef NSInteger NSApplicationActivationPolicy;
|
||||||
- (void)setWantsBestResolutionOpenGLSurface:(BOOL)flag;
|
- (void)setWantsBestResolutionOpenGLSurface:(BOOL)flag;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface NSView(Compatibility)
|
||||||
|
- (NSRect)convertRectToBacking:(NSRect)aRect;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSScreen(HiDPIStubs)
|
@interface NSScreen(HiDPIStubs)
|
||||||
- (NSRect)convertRectToBacking:(NSRect)aRect;
|
- (NSRect)convertRectToBacking:(NSRect)aRect;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
static const NSWindowCollectionBehavior NSWindowCollectionBehaviorFullScreenAuxiliary = NSWindowCollectionBehavior(1 << 8);
|
static const NSWindowCollectionBehavior NSWindowCollectionBehaviorFullScreenAuxiliary = NSWindowCollectionBehavior(1 << 8);
|
||||||
|
|
||||||
static const NSOpenGLPixelFormatAttribute NSOpenGLPFAOpenGLProfile(96);
|
static const auto NSOpenGLPFAOpenGLProfile = NSOpenGLPixelFormatAttribute(96);
|
||||||
static const NSOpenGLPixelFormatAttribute NSOpenGLProfileVersion3_2Core(0x3200);
|
static const auto NSOpenGLProfileVersionLegacy = NSOpenGLPixelFormatAttribute(0x1000);
|
||||||
|
static const auto NSOpenGLProfileVersion3_2Core = NSOpenGLPixelFormatAttribute(0x3200);
|
||||||
|
|
||||||
#endif // prior to 10.7
|
#endif // prior to 10.7
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,19 @@
|
||||||
#undef Class
|
#undef Class
|
||||||
|
|
||||||
|
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
|
||||||
|
|
||||||
|
@implementation NSView(Compatibility)
|
||||||
|
|
||||||
|
- (NSRect)convertRectToBacking:(NSRect)aRect
|
||||||
|
{
|
||||||
|
return [self convertRect:aRect toView:[self superview]];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif // prior to 10.7
|
||||||
|
|
||||||
@implementation NSWindow(ExitAppOnClose)
|
@implementation NSWindow(ExitAppOnClose)
|
||||||
|
|
||||||
- (void)exitAppOnClose
|
- (void)exitAppOnClose
|
||||||
|
|
Loading…
Reference in a new issue