mac: Fix compilation for SDK < 10.15

This commit is contained in:
Nevyn Bengtsson 2021-01-12 08:48:25 +01:00
parent df57c1005c
commit d02a83b5c4

View File

@ -49,7 +49,7 @@ static char* getDisplayName(CGDirectDisplayID displayID)
{
if ([[[screen deviceDescription] objectForKey:@"NSScreenNumber"] intValue] == displayID)
{
NSString *name = [screen localizedName];
NSString *name = [screen valueForKey:@"localizedName"];
if (name)
{
return _glfw_strdup([name UTF8String]);