|
|
@ -48,7 +48,7 @@ static char* getDisplayName(CGDirectDisplayID displayID) |
|
|
|
CFIndex size; |
|
|
|
CFIndex size; |
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This uses a deprecated function because Apple has |
|
|
|
// NOTE: This uses a deprecated function because Apple has |
|
|
|
// (as of September 2014) not provided any alternative |
|
|
|
// (as of January 2015) not provided any alternative |
|
|
|
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID), |
|
|
|
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID), |
|
|
|
kIODisplayOnlyPreferredName); |
|
|
|
kIODisplayOnlyPreferredName); |
|
|
|
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); |
|
|
|
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); |
|
|
|