From 12461196c3cf9f251417955278e1863e69aaa24e Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 23 Dec 2021 23:26:53 -0500 Subject: [PATCH] [host] nvfbc: fix comments in updateDamageRects --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index 007e851f..283b513a 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -394,8 +394,8 @@ static void updateDamageRects(CaptureFrame * frame) for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i) ds[i].use = (bool)this->diffMap[i]; - // reduce the number of reusuting rectangles by filling in holes and merging - // iiregular shapes into contiguous rectangles + // reduce the number of resulting rectangles by filling in holes and merging + // irregular shapes into contiguous rectangles bool resolve; do { @@ -447,8 +447,8 @@ static void updateDamageRects(CaptureFrame * frame) bool ok = true; if (x > 0 && ds[l].id != ds[u].id) { - // no need to use dsFind as the search order ensures that the id has - // been fully resolved of the block above + // no need to use dsFind as the search order ensures that the id of + // the block above has been fully resolved for(unsigned int j = ds[ds[u].id].x1; j <= ds[ds[u].id].x2; ++j) if (!ds[y * w + j].use) {