diff --git a/sys/osxvideo/cocoawindow.m b/sys/osxvideo/cocoawindow.m index 57d19a9bf1..71e1ca0504 100644 --- a/sys/osxvideo/cocoawindow.m +++ b/sys/osxvideo/cocoawindow.m @@ -336,7 +336,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode) NSOpenGLPFAColorSize, 24, NSOpenGLPFAAlphaSize, 8, NSOpenGLPFADepthSize, 24, +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090 NSOpenGLPFAWindow, +#endif 0 }; @@ -573,7 +575,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode) NSOpenGLPFAColorSize, 24, NSOpenGLPFAAlphaSize, 8, NSOpenGLPFADepthSize, 24, +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 NSOpenGLPFAFullScreen, +#endif NSOpenGLPFAScreenMask, CGDisplayIDToOpenGLDisplayMask (kCGDirectMainDisplay), 0 @@ -602,7 +606,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode) GST_WARNING ("CGCaptureAllDisplays() failed"); return; } +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070 [fullScreenContext setFullScreen]; +#endif [fullScreenContext makeCurrentContext]; fullscreen = YES;