From 8e87b639fa04214a0cc39cb9f28c01995965f135 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 19 Nov 2021 14:08:00 +0800 Subject: [PATCH] Use macOS 11.0 version number --- glfw/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index e673d8c95..97ee504b6 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -2439,7 +2439,7 @@ void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor UNUSED) bool _glfwPlatformIsFullscreen(_GLFWwindow* w, unsigned int flags) { NSWindow *window = w->ns.object; bool traditional = !(flags & 1); - if (traditional) { if(@available(macOS 10.16, *)) return w->ns.in_traditional_fullscreen; } + if (traditional) { if(@available(macOS 11.0, *)) return w->ns.in_traditional_fullscreen; } NSWindowStyleMask sm = [window styleMask]; return sm & NSWindowStyleMaskFullScreen; } @@ -2450,7 +2450,7 @@ bool _glfwPlatformToggleFullscreen(_GLFWwindow* w, unsigned int flags) { bool traditional = !(flags & 1); NSWindowStyleMask sm = [window styleMask]; if (traditional) { - if (@available(macOS 10.16, *)) { + if (@available(macOS 11.0, *)) { // As of Big Turd NSWindowStyleMaskFullScreen is no longer useable if (!w->ns.in_traditional_fullscreen) { w->ns.pre_full_screen_style_mask = sm;