mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
mac: Fix compilation for SDK < 10.15
This commit is contained in:
parent
df57c1005c
commit
d02a83b5c4
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user