Documented use of deprecated OS X function.

This commit is contained in:
Camilla Berglund 2014-09-03 00:31:39 +02:00
parent f8d80a936f
commit 3fcc2a6cb2

View File

@ -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));