Improved handling of primary monitor.

This commit is contained in:
Camilla Berglund
2012-09-13 17:46:40 +02:00
parent d21e79642b
commit 20a49a7eee
5 changed files with 31 additions and 4 deletions
+2 -2
View File
@@ -263,9 +263,9 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
{
const CGSize size = CGDisplayScreenSize(displays[i]);
const CGRect bounds = CGDisplayBounds(displays[i]);
const char* name = getDisplayName(displays[i]);
monitors[found] = _glfwCreateMonitor(name,
monitors[found] = _glfwCreateMonitor(getDisplayName(displays[i]),
CGDisplayIsMain(displays[i]),
size.width, size.height,
bounds.origin.x, bounds.origin.y);