|
@@ -58,7 +58,7 @@ static char* getMonitorName(CGDirectDisplayID displayID, NSScreen* screen)
|
|
|
io_service_t service;
|
|
|
CFDictionaryRef info;
|
|
|
|
|
|
- if (IOServiceGetMatchingServices(kIOMasterPortDefault,
|
|
|
+ if (IOServiceGetMatchingServices(kIOMainPortDefault,
|
|
|
IOServiceMatching("IODisplayConnect"),
|
|
|
&it) != 0)
|
|
|
{
|
|
@@ -231,7 +231,7 @@ static double getFallbackRefreshRate(CGDirectDisplayID displayID)
|
|
|
io_iterator_t it;
|
|
|
io_service_t service;
|
|
|
|
|
|
- if (IOServiceGetMatchingServices(kIOMasterPortDefault,
|
|
|
+ if (IOServiceGetMatchingServices(kIOMainPortDefault,
|
|
|
IOServiceMatching("IOFramebuffer"),
|
|
|
&it) != 0)
|
|
|
{
|