commit | a0742e99e36ecace1a13eea1a490d31e831724e9 | [log] [tgz] |
---|---|---|
author | Camilla Berglund <elmindreda@elmindreda.org> | Wed Sep 17 12:28:26 2014 +0200 |
committer | Camilla Berglund <elmindreda@elmindreda.org> | Wed Sep 17 12:28:26 2014 +0200 |
tree | 3ca2eda31e53e225eeecfe05b232d5308d4c7153 | |
parent | 99cedceef5867bdc377ce0406ddecad9a4ab292d [diff] |
Fixed error return value of glfwGetCocoaMonitor.
diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m index de7c624..5ced387 100644 --- a/src/cocoa_monitor.m +++ b/src/cocoa_monitor.m
@@ -421,7 +421,7 @@ GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(0); + _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); return monitor->ns.displayID; }