diff --git a/common/src/rects.c b/common/src/rects.c index 80257ee6..6c3cdbc4 100644 --- a/common/src/rects.c +++ b/common/src/rects.c @@ -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)