Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions trinityal/metal/Tr2VideoAdapterInfoALMetal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ io_service_t IOServicePortFromCGDisplayID( CGDirectDisplayID displayID )
io_service_t serv, servicePort = 0;

CFMutableDictionaryRef matching = IOServiceMatching( "IODisplayConnect" );
if( IOServiceGetMatchingServices( kIOMasterPortDefault, matching, &iter ) )
if( IOServiceGetMatchingServices( MACH_PORT_NULL, matching, &iter ) )
{
return 0;
}
Expand Down Expand Up @@ -181,7 +181,7 @@ void RefreshDisplays()
if( uint64_t regID = [device respondsToSelector:@selector( registryID )] ? device.registryID : 0 )
{
if( io_registry_entry_t entry =
IOServiceGetMatchingService( kIOMasterPortDefault, IORegistryEntryIDMatching( regID ) ) )
IOServiceGetMatchingService( MACH_PORT_NULL, IORegistryEntryIDMatching( regID ) ) )
{
io_registry_entry_t parent;
if( IORegistryEntryGetParentEntry( entry, kIOServicePlane, &parent ) == kIOReturnSuccess )
Expand Down