Fixed use of wrong variable.

This commit is contained in:
Camilla Berglund 2013-06-09 12:18:07 +02:00
parent 296b0a39a0
commit 8c069f3753

View File

@ -177,7 +177,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found)
sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root);
primary = XRRGetOutputPrimary(_glfw.x11.display, _glfw.x11.root);
monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*));
monitors = (_GLFWmonitor**) calloc(sr->ncrtc, sizeof(_GLFWmonitor*));
for (i = 0; i < sr->ncrtc; i++)
{