[common] rects: fix rectIntersects

This commit is contained in:
Quantum 2021-10-20 01:31:38 -04:00 committed by Geoffrey McRae
parent 9969896876
commit edf1e341da

View file

@ -206,7 +206,7 @@ inline static bool rectIntersects(const FrameDamageRect * r1, const FrameDamageR
return r1->x < r2->x + r2->width &&
r1->x + r1->width > r2->x &&
r1->y < r2->y + r2->height &&
r2->y + r1->height > r2->y;
r1->y + r1->height > r2->y;
}
int rectsMergeOverlapping(FrameDamageRect * rects, int count)