Intersect two rectangles
bool drm_rect_intersect(struct drm_rect * r1, const struct drm_rect * r2);
r1
first rectangle
r2
second rectangle
Calculate the intersection of rectangles r1 and r2. r1 will be overwritten with the intersection.
true if rectangle r1 is still visible after the operation, false otherwise.
Jesse Barnes <[email protected]>
Intel Corporation,
Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
Driver internals
Daniel Vetter <[email protected]>
Intel Corporation,
Contributions all over the place