Lines Matching defs:res

192 static XRRScreenResources  *res = NULL;
407 for (m = 0; m < res->nmode; m++)
409 XRRModeInfo *mode = &res->modes[m];
467 num_crtcs = res->ncrtc;
470 for (c = 0; c < res->ncrtc; c++)
482 for (c = 0; c < res->ncrtc; c++)
484 XRRCrtcInfo *crtc_info = XRRGetCrtcInfo (dpy, res, res->crtcs[c]);
485 set_name_xid (&crtcs[c].crtc, res->crtcs[c]);
487 if (!crtc_info) fatal ("could not get crtc 0x%x information", res->crtcs[c]);
553 return XRRSetCrtcConfig (dpy, res, crtc->crtc.xid, CurrentTime,
567 return XRRSetCrtcConfig (dpy, res, crtc->crtc.xid, CurrentTime,
602 s = XRRSetCrtcConfig (dpy, res, crtc->crtc.xid, CurrentTime,
657 for (c = 0; c < res->ncrtc; c++)
662 for (c = 0; c < res->ncrtc; c++)
701 for (c = 0; c < res->ncrtc; c++)
765 for (c = 0; c < res->ncrtc; c++)
788 for (o = 0; o < res->noutput; o++)
790 XRROutputInfo *output_info = XRRGetOutputInfo (dpy, res, res->outputs[o]);
794 if (!output_info) fatal ("could not get output 0x%x information", res->outputs[o]);
795 set_name_xid (&output_name, res->outputs[o]);
805 set_output_info (output, res->outputs[o], output_info);
1164 if ((new_res->noutput != res->noutput) || (new_res->nmode != res->nmode) ||
1165 (new_res->ncrtc != res->ncrtc))
1169 if (new_res->outputs[i] != res->outputs[i]) {
1174 if (new_res->modes[i].id != res->modes[i].id) {
1182 crtc = find_crtc_by_xid (res->crtcs[i]);
1203 if (res)
1204 XRRFreeScreenResources(res);
1205 res = new_res;
1959 res = XRRGetScreenResources (dpy, root);
1960 if (!res)
1962 if (res->ncrtc < 2)
1963 fatal ("too few crtcs: %d\n", res->ncrtc);