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)
81 dx = x - (crtc->x + scan_width);
84 if (y < crtc->y)
85 dy = crtc->y - x;
86 else if (y > crtc->y + scan_height)
87 dy = y - (crtc->y + scan_height);
93 nearest = crtc;
117 RRCrtcPtr crtc = pScrPriv->crtcs[c];
119 if (RRCrtcContainsPosition (crtc, x, y))
122 pScrPriv->pointerCrtc = crtc;