From edf1e341da034e30ce1a26fa2beb3fc744c67159 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 20 Oct 2021 01:31:38 -0400 Subject: [PATCH] [common] rects: fix rectIntersects --- common/src/rects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)