mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Fixed uses of wrong loop variable.
This commit is contained in:
parent
253e0d6b23
commit
1130f1af3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user