Skip to content

Commit

Permalink
cocoa: Patched to compile on older compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 5, 2019
1 parent 8342fa7 commit 597f11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamodes.m
Expand Up @@ -451,7 +451,7 @@

/* 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<NSScreen *> *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) {
Expand Down

0 comments on commit 597f11e

Please sign in to comment.