Lines Matching defs:crtc
35 RRCrtcContainsPosition(RRCrtcPtr crtc, int x, int y)
37 RRModePtr mode = crtc->mode;
43 RRCrtcGetScanoutSize(crtc, &scan_width, &scan_height);
45 if (crtc->x <= x && x < crtc->x + scan_width &&
46 crtc->y <= y && y < crtc->y + scan_height)
65 RRCrtcPtr crtc = pScrPriv->crtcs[c];
66 RRModePtr mode = crtc->mode;
73 if (crtc == skip)
76 RRCrtcGetScanoutSize(crtc, &scan_width, &scan_height);
78 if (x < crtc->x)
79 dx = crtc->x - x;
80 else if (x > crtc->x + scan_width - 1)
81 dx = crtc->x + (scan_width - 1) - x;
84 if (y < crtc->y)
85 dy = crtc->y - y;
86 else if (y > crtc->y + scan_height - 1)
87 dy = crtc->y + (scan_height - 1) - y;
92 nearest = crtc;
117 RRCrtcPtr crtc = pScrPriv->crtcs[c];
119 if (RRCrtcContainsPosition(crtc, x, y)) {
121 pScrPriv->pointerCrtc = crtc;