|
|
|
@ -157,13 +157,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found) |
|
|
|
|
primary = XRRGetOutputPrimary(_glfw.x11.display, _glfw.x11.root); |
|
|
|
|
|
|
|
|
|
monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*)); |
|
|
|
|
if (!monitors) |
|
|
|
|
{ |
|
|
|
|
XRRFreeScreenResources(sr); |
|
|
|
|
|
|
|
|
|
_glfwInputError(GLFW_OUT_OF_MEMORY, NULL); |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (i = 0; i < sr->ncrtc; i++) |
|
|
|
|
{ |
|
|
|
@ -220,12 +213,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found) |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
monitors = (_GLFWmonitor**) calloc(1, sizeof(_GLFWmonitor*)); |
|
|
|
|
if (!monitors) |
|
|
|
|
{ |
|
|
|
|
_glfwInputError(GLFW_OUT_OF_MEMORY, NULL); |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
monitors[0] = _glfwCreateMonitor("Display", |
|
|
|
|
DisplayWidthMM(_glfw.x11.display, |
|
|
|
|
_glfw.x11.screen), |
|
|
|
|