Fixed uses of wrong loop variable.

This commit is contained in:
Camilla Berglund 2013-02-17 13:57:25 +01:00
parent 253e0d6b23
commit 1130f1af3f

View File

@ -173,11 +173,11 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found)
RROutput output;
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
output = ci->outputs[i];
output = ci->outputs[0];
for (j = 0; j < ci->noutput; j++)
{
if (ci->outputs[i] == primary)
if (ci->outputs[j] == primary)
{
output = primary;
break;