Lines Matching refs:_glfw

89     _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen),
104 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
109 XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display,
110 _glfw.x11.root);
111 RROutput primary = XRRGetOutputPrimary(_glfw.x11.display,
112 _glfw.x11.root);
114 if (_glfw.x11.xinerama.available)
115 screens = XineramaQueryScreens(_glfw.x11.display, &screenCount);
117 disconnectedCount = _glfw.monitorCount;
120 disconnected = _glfw_calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*));
122 _glfw.monitors,
123 _glfw.monitorCount * sizeof(_GLFWmonitor*));
130 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]);
153 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc);
217 const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen);
218 const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen);
230 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
241 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
242 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
243 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
264 XRRSetCrtcConfig(_glfw.x11.display,
284 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
290 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
291 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
293 XRRSetCrtcConfig(_glfw.x11.display,
320 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
323 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
324 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
344 *xscale = _glfw.x11.contentScaleX;
346 *yscale = _glfw.x11.contentScaleY;
355 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
358 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
359 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
382 areaWidth = DisplayWidth(_glfw.x11.display, _glfw.x11.screen);
383 areaHeight = DisplayHeight(_glfw.x11.display, _glfw.x11.screen);
386 if (_glfw.x11.NET_WORKAREA && _glfw.x11.NET_CURRENT_DESKTOP)
391 _glfwGetWindowPropertyX11(_glfw.x11.root,
392 _glfw.x11.NET_WORKAREA,
396 if (_glfwGetWindowPropertyX11(_glfw.x11.root,
397 _glfw.x11.NET_CURRENT_DESKTOP,
449 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
452 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
453 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
454 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
497 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
500 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
503 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
523 mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen);
524 mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen);
527 _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen),
536 if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken)
538 const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display,
540 XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display,
552 else if (_glfw.x11.vidmode.available)
555 XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size);
559 XF86VidModeGetGammaRamp(_glfw.x11.display,
560 _glfw.x11.screen,
574 if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken)
576 if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size)
589 XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma);
592 else if (_glfw.x11.vidmode.available)
594 XF86VidModeSetGammaRamp(_glfw.x11.display,
595 _glfw.x11.screen,
617 if (_glfw.platform.platformID != GLFW_PLATFORM_X11)
633 if (_glfw.platform.platformID != GLFW_PLATFORM_X11)