From 6078b112007b7594e2fdcfcf1769fa8008381333 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 26 Oct 2021 22:26:20 +1100 Subject: [PATCH] Revert "[common] rects: fix damage regression introduced in the cosmetics patch" This was correct, brainfart moment --- 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 1271a0d3..80d00038 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);