Explorar el Código

X11: Expose zero monitor for functional headless

Fixes #1147.
Camilla Löwy hace 7 años
padre
commit
30489c5aa1
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/x11_monitor.c

+ 1 - 2
src/x11_monitor.c

@@ -203,8 +203,7 @@ void _glfwPollMonitorsX11(void)
 
         free(disconnected);
     }
-
-    if (!_glfw.monitorCount)
+    else
     {
         const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen);
         const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen);