Lines Matching defs:monitor
175 _GLFWmonitor* monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM);
176 monitor->x11.output = sr->outputs[i];
177 monitor->x11.crtc = oi->crtc;
186 monitor->x11.index = j;
191 if (monitor->x11.output == primary)
196 _glfwInputMonitor(monitor, GLFW_CONNECTED, type);
226 // Set the current video mode for the specified monitor
228 void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired)
235 const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired);
236 _glfwGetVideoModeX11(monitor, ¤t);
242 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
243 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
261 if (monitor->x11.oldMode == None)
262 monitor->x11.oldMode = ci->mode;
265 sr, monitor->x11.crtc,
280 // Restore the saved (original) video mode for the specified monitor
282 void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor)
286 if (monitor->x11.oldMode == None)
291 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
294 sr, monitor->x11.crtc,
297 monitor->x11.oldMode,
305 monitor->x11.oldMode = None;
314 void _glfwFreeMonitorX11(_GLFWmonitor* monitor)
318 void _glfwGetMonitorPosX11(_GLFWmonitor* monitor, int* xpos, int* ypos)
324 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
340 void _glfwGetMonitorContentScaleX11(_GLFWmonitor* monitor,
349 void _glfwGetMonitorWorkareaX11(_GLFWmonitor* monitor,
359 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
443 GLFWvidmode* _glfwGetVideoModesX11(_GLFWmonitor* monitor, int* count)
453 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
454 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
489 _glfwGetVideoModeX11(monitor, result);
495 GLFWbool _glfwGetVideoModeX11(_GLFWmonitor* monitor, GLFWvidmode* mode)
503 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
534 GLFWbool _glfwGetGammaRampX11(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
539 monitor->x11.crtc);
541 monitor->x11.crtc);
572 void _glfwSetGammaRampX11(_GLFWmonitor* monitor, const GLFWgammaramp* ramp)
576 if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size)
589 XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma);
623 _GLFWmonitor* monitor = (_GLFWmonitor*) handle;
624 assert(monitor != NULL);
626 return monitor->x11.crtc;
639 _GLFWmonitor* monitor = (_GLFWmonitor*) handle;
640 assert(monitor != NULL);
642 return monitor->x11.output;