mirror of
https://github.com/glfw/glfw.git
synced 2024-11-30 05:47:10 +00:00
Fixed use of wrong variable.
This commit is contained in:
parent
296b0a39a0
commit
8c069f3753
@ -177,7 +177,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found)
|
|||||||
sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root);
|
sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root);
|
||||||
primary = XRRGetOutputPrimary(_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++)
|
for (i = 0; i < sr->ncrtc; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user