From 9d71655273bf4b6ec632ad16dd95d1a1cd13e713 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 24 Oct 2021 22:22:13 +1100 Subject: [PATCH] [common] rects: fix return value of `removeRects` --- 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 8c2c82d9..80d00038 100644 --- a/common/src/rects.c +++ b/common/src/rects.c @@ -70,7 +70,7 @@ inline static int removeRects(FrameDamageRect * rects, int count, rects[o-1] = rects[i]; } - return 0; + return o; } static int cornerCompare(const void * a_, const void * b_)