Lines Matching defs:r1
40 * @r1: first rectangle
43 * Calculate the intersection of rectangles @r1 and @r2.
44 * @r1 will be overwritten with the intersection.
47 * %true if rectangle @r1 is still visible after the operation,
50 bool drm_rect_intersect(struct drm_rect *r1, const struct drm_rect *r2)
52 r1->x1 = max(r1->x1, r2->x1);
53 r1->y1 = max(r1->y1, r2->y1);
54 r1->x2 = min(r1->x2, r2->x2);
55 r1->y2 = min(r1->y2, r2->y2);
57 return drm_rect_visible(r1);