mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 09:01:46 +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;
|
RROutput output;
|
||||||
|
|
||||||
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
|
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
|
||||||
output = ci->outputs[i];
|
output = ci->outputs[0];
|
||||||
|
|
||||||
for (j = 0; j < ci->noutput; j++)
|
for (j = 0; j < ci->noutput; j++)
|
||||||
{
|
{
|
||||||
if (ci->outputs[i] == primary)
|
if (ci->outputs[j] == primary)
|
||||||
{
|
{
|
||||||
output = primary;
|
output = primary;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user