mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Improved handling of primary monitor.
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user