From 3b6ad957e373e78e24210762e6f9b3d91f3a259c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 22 Jul 2021 18:38:00 +1000 Subject: [PATCH] [client] overlay: increment `totalRects` --- client/src/app.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app.c b/client/src/app.c index ff425d59..ec1a927d 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -675,8 +675,9 @@ int app_renderOverlay(struct Rect * rects, int maxRects) } else { - maxRects -= written; - rects += written; + maxRects -= written; + rects += written; + totalRects += written; } }