From 597f11e563084270b7139b42927d38d35467c416 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 5 Dec 2019 17:27:06 -0500 Subject: [PATCH] cocoa: Patched to compile on older compilers. --- src/video/cocoa/SDL_cocoamodes.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoamodes.m b/src/video/cocoa/SDL_cocoamodes.m index ad8bfa290..119083151 100644 --- a/src/video/cocoa/SDL_cocoamodes.m +++ b/src/video/cocoa/SDL_cocoamodes.m @@ -451,7 +451,7 @@ Cocoa_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdp /* we need the backingScaleFactor for Retina displays, which is only exposed through NSScreen, not CGDisplay, afaik, so find our screen... */ CGFloat scaleFactor = 1.0f; - NSArray *screens = [NSScreen screens]; + NSArray *screens = [NSScreen screens]; for (NSScreen *screen in screens) { const CGDirectDisplayID dpyid = (const CGDirectDisplayID ) [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue]; if (dpyid == data->display) {