cocoa: Patched to compile on older compilers.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 05 Dec 2019 17:27:06 -0500
changeset 13317872d4ecd39f6
parent 13316 c0c751a347e0
child 13318 2b9626c9304a
cocoa: Patched to compile on older compilers.
src/video/cocoa/SDL_cocoamodes.m
     1.1 --- a/src/video/cocoa/SDL_cocoamodes.m	Thu Dec 05 13:48:08 2019 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoamodes.m	Thu Dec 05 17:27:06 2019 -0500
     1.3 @@ -451,7 +451,7 @@
     1.4  
     1.5      /* we need the backingScaleFactor for Retina displays, which is only exposed through NSScreen, not CGDisplay, afaik, so find our screen... */
     1.6      CGFloat scaleFactor = 1.0f;
     1.7 -    NSArray<NSScreen *> *screens = [NSScreen screens];
     1.8 +    NSArray *screens = [NSScreen screens];
     1.9      for (NSScreen *screen in screens) {
    1.10          const CGDirectDisplayID dpyid = (const CGDirectDisplayID ) [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
    1.11          if (dpyid == data->display) {