Revert "[common] rects: fix damage regression introduced in the cosmetics patch"

This was correct, brainfart moment
This commit is contained in:
Geoffrey McRae 2021-10-26 22:26:20 +11:00
parent 68a9504366
commit 6078b11200

View File

@ -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);