[common] rects: add rectsRejectContained function

This function will remove rectangles in a list that are entirely contained
in another rectangle in the same list.
This commit is contained in:
Quantum
2021-08-13 02:01:01 -04:00
committed by Geoffrey McRae
parent 566c89e9d8
commit e945955d13
2 changed files with 28 additions and 1 deletions

View File

@@ -47,5 +47,6 @@ void rectsFramebufferToBuffer(FrameDamageRect * rects, int count,
const FrameBuffer * frame, int srcStride);
int rectsMergeOverlapping(FrameDamageRect * rects, int count);
int rectsRejectContained(FrameDamageRect * rects, int count);
#endif