<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- src/gui/menu_macos.mm.orig	2022-08-01 08:44:38.000000000 -0700
+++ src/gui/menu_macos.mm	2022-08-01 18:06:46.000000000 -0700
@@ -10,7 +10,9 @@
 #include "SDL_syswm.h"
 
 #if defined(MACOSX)
+#if MAC_OS_X_VERSION_MAX_ALLOWED &gt;= 1080
 # include &lt;MacTypes.h&gt;
+#endif
 # include &lt;Cocoa/Cocoa.h&gt;
 # include &lt;Foundation/NSString.h&gt;
 # include &lt;ApplicationServices/ApplicationServices.h&gt;
@@ -384,7 +386,7 @@
             pt.y = (prct.origin.y + prct.size.height) - pt.y;
         }
 
-        err = CGGetDisplaysWithPoint(pt,1,&amp;did,&amp;cnt);
+        err = CGGetDisplaysWithPoint(CGPointMake(pt.x,pt.y),1,&amp;did,&amp;cnt);
 
         /* This might happen if our window is so far off the screen that the center point does not match any monitor */
         if (err != kCGErrorSuccess) {
</pre></body></html>