Lines Matching refs:r1
29 * @r1: first rectangle
32 * Calculate the intersection of rectangles @r1 and @r2.
33 * @r1 will be overwritten with the intersection.
36 * %true if rectangle @r1 is still visible after the operation,
39 int drm_rect_intersect(struct drm_rect *r1, const struct drm_rect *r2)
41 r1->x1 = max(r1->x1, r2->x1);
42 r1->y1 = max(r1->y1, r2->y1);
43 r1->x2 = min(r1->x2, r2->x2);
44 r1->y2 = min(r1->y2, r2->y2);
46 return drm_rect_visible(r1);