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

This commit is contained in:
Geoffrey McRae 2021-10-26 22:15:54 +11:00
parent 67ea8e06ba
commit 68a9504366

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