mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Documented use of deprecated OS X function.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user