From 68a95043663776b30de20b567081fda0b5280e1d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 26 Oct 2021 22:15:54 +1100 Subject: [PATCH] [common] rects: fix damage regression introduced in the cosmetics patch --- 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 80d00038..1271a0d3 100644 --- a/common/src/rects.c +++ b/common/src/rects.c @@ -256,7 +256,7 @@ int rectsMergeOverlapping(FrameDamageRect * rects, int count) for (int j = i + 1; j < count; ++j) { - if (removed[j] || !rectIntersects(rects + i, rects + j)) + if (!(!removed[j] && rectIntersects(rects + i, rects + j))) continue; rects[i].x = min(rects[i].x, rects[j].x);