Quellcode durchsuchen

sokol_app.h macos: change maximumFramesPerSecond from property access to method call (fixes #705)

Andre Weissflog vor 3 Jahren
Ursprung
Commit
01eeb35658
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      sokol_app.h

+ 1 - 1
sokol_app.h

@@ -3554,7 +3554,7 @@ _SOKOL_PRIVATE void _sapp_macos_frame(void) {
         NSInteger max_fps = 60;
         #if (__MAC_OS_X_VERSION_MAX_ALLOWED >= 120000)
         if (@available(macOS 12.0, *)) {
-            max_fps = NSScreen.mainScreen.maximumFramesPerSecond;
+            max_fps = [NSScreen.mainScreen maximumFramesPerSecond];
         }
         #endif
         _sapp.macos.mtl_device = MTLCreateSystemDefaultDevice();