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