[common] rects: add rectsMergeOverlapping helper function

This is based on the client's util_mergeOverlappingRects.
This commit is contained in:
Quantum
2021-08-11 02:36:16 -04:00
committed by Geoffrey McRae
parent 22bbc2457e
commit 604b44d6d8
2 changed files with 47 additions and 0 deletions

View File

@@ -46,4 +46,6 @@ void rectsFramebufferToBuffer(FrameDamageRect * rects, int count,
uint8_t * dst, int dstStride, int height,
const FrameBuffer * frame, int srcStride);
int rectsMergeOverlapping(FrameDamageRect * rects, int count);
#endif