mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
+2
-5
@@ -48,9 +48,8 @@ static char* getDisplayName(CGDirectDisplayID displayID)
|
|||||||
IOServiceMatching("IODisplayConnect"),
|
IOServiceMatching("IODisplayConnect"),
|
||||||
&it) != 0)
|
&it) != 0)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
// This may happen if a desktop Mac is running headless
|
||||||
"Cocoa: Failed to get display service port iterator");
|
return NULL;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((service = IOIteratorNext(it)) != 0)
|
while ((service = IOIteratorNext(it)) != 0)
|
||||||
@@ -99,8 +98,6 @@ static char* getDisplayName(CGDirectDisplayID displayID)
|
|||||||
(const void**) &nameRef))
|
(const void**) &nameRef))
|
||||||
{
|
{
|
||||||
// This may happen if a desktop Mac is running headless
|
// This may happen if a desktop Mac is running headless
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
|
||||||
"Cocoa: Failed to retrieve display name");
|
|
||||||
CFRelease(info);
|
CFRelease(info);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user