mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
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:
committed by
Camilla Berglund
parent
882b770ecb
commit
4277e9f5d6
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user