mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 07:34:35 +00:00
Fixed harmless argument reversal.
This commit is contained in:
parent
dc9d287e33
commit
b415b9aacf
@ -214,7 +214,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
||||
RROutput primary = XRRGetOutputPrimary(_glfw.x11.display,
|
||||
_glfw.x11.root);
|
||||
|
||||
monitors = calloc(sizeof(_GLFWmonitor*), sr->noutput);
|
||||
monitors = calloc(sr->noutput, sizeof(_GLFWmonitor*));
|
||||
|
||||
if (_glfw.x11.xinerama.available)
|
||||
screens = XineramaQueryScreens(_glfw.x11.display, &screenCount);
|
||||
|
Loading…
Reference in New Issue
Block a user