Removed NSScreen member of OS X monitor.

Apple's documentation of [NSScreen screens] mentions that, "The
(screens) array should not be cached.  Screens can be added, removed,
or dynamically reconfigured at any time."  Because of this, we simply
obtain the screen from a displayID whenever we need it.

Fixes #492.
Closes #493.
This commit is contained in:
Chi-kwan Chan
2015-04-07 21:02:48 -04:00
committed by Camilla Berglund
parent 882b770ecb
commit 4277e9f5d6
3 changed files with 24 additions and 5 deletions
-1
View File
@@ -286,7 +286,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
monitor = _glfwAllocMonitor(name, size.width, size.height);
monitor->ns.displayID = displays[i];
monitor->ns.screen = [screens objectAtIndex:j];
free(name);