mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Documented use of deprecated OS X function.
This commit is contained in:
parent
f8d80a936f
commit
3fcc2a6cb2
@ -47,6 +47,8 @@ static char* getDisplayName(CGDirectDisplayID displayID)
|
|||||||
CFStringRef value;
|
CFStringRef value;
|
||||||
CFIndex size;
|
CFIndex size;
|
||||||
|
|
||||||
|
// NOTE: This uses a deprecated function because Apple has
|
||||||
|
// (as of September 2014) not provided any alternative
|
||||||
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID),
|
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID),
|
||||||
kIODisplayOnlyPreferredName);
|
kIODisplayOnlyPreferredName);
|
||||||
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName));
|
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName));
|
||||||
|
Loading…
Reference in New Issue
Block a user