Fixed use of wrong variable.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 296b0a39a0
commit 8c069f3753
  1. 2
      src/x11_monitor.c

@ -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++)
{

Loading…
Cancel
Save