Lines Matching defs:r1
34 * @r1: first rectangle
37 * Calculate the intersection of rectangles @r1 and @r2.
38 * @r1 will be overwritten with the intersection.
41 * %true if rectangle @r1 is still visible after the operation,
44 bool drm_rect_intersect(struct drm_rect *r1, const struct drm_rect *r2)
46 r1->x1 = max(r1->x1, r2->x1);
47 r1->y1 = max(r1->y1, r2->y1);
48 r1->x2 = min(r1->x2, r2->x2);
49 r1->y2 = min(r1->y2, r2->y2);
51 return drm_rect_visible(r1);