1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2025-01-31 11:28:50 -05:00

Added comment on headless Macs.

This commit is contained in:
Camilla Berglund 2014-01-21 15:17:28 +01:00
parent 6eec7970c1
commit beb7e5909f

View File

@ -52,6 +52,7 @@ static const char* getDisplayName(CGDirectDisplayID displayID)
if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"),
(const void**) &value)) (const void**) &value))
{ {
// This may happen if a desktop Mac is running headless
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to retrieve display name"); _glfwInputError(GLFW_PLATFORM_ERROR, "Failed to retrieve display name");
CFRelease(info); CFRelease(info);