aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-08-21 15:13:34 +0200
committerAndre Weissflog <floooh@gmail.com>2022-08-21 15:13:34 +0200
commit01eeb35658fee9b6fe2e31145925fbd5e22faf47 (patch)
treedd85dd33c321d383d1cd5200e0ba75f4028f2216
parentefc3a2b3d89d1d6371e130dd2d1046c976a4a9cc (diff)
sokol_app.h macos: change maximumFramesPerSecond from property access to method call (fixes #705)
-rw-r--r--sokol_app.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 54cdba1c..e2cc6048 100644
--- a/sokol_app.h
+++ b/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();