mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05: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;
|
||||
CFIndex size;
|
||||
|
||||
// NOTE: This uses a deprecated function because Apple has
|
||||
// (as of September 2014) not provided any alternative
|
||||
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID),
|
||||
kIODisplayOnlyPreferredName);
|
||||
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName));
|
||||
|
|
Loading…
Reference in New Issue
Block a user