Lines Matching refs:sr
58 static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id)
60 for (int i = 0; i < sr->nmode; i++)
62 if (sr->modes[i].id == id)
63 return sr->modes + i;
109 XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display,
126 for (int i = 0; i < sr->noutput; i++)
130 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]);
140 disconnected[j]->x11.output == sr->outputs[i])
153 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc);
176 monitor->x11.output = sr->outputs[i];
202 XRRFreeScreenResources(sr);
240 XRRScreenResources* sr =
242 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
243 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
247 const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]);
265 sr, monitor->x11.crtc,
276 XRRFreeScreenResources(sr);
289 XRRScreenResources* sr =
291 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
294 sr, monitor->x11.crtc,
303 XRRFreeScreenResources(sr);
322 XRRScreenResources* sr =
324 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
336 XRRFreeScreenResources(sr);
357 XRRScreenResources* sr =
359 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
364 const XRRModeInfo* mi = getModeInfo(sr, ci->mode);
378 XRRFreeScreenResources(sr);
451 XRRScreenResources* sr =
453 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
454 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
460 const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]);
483 XRRFreeScreenResources(sr);
499 XRRScreenResources* sr =
503 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
506 mi = getModeInfo(sr, ci->mode);
513 XRRFreeScreenResources(sr);