From 8605df8c8d961426521735d256ed1018d0664f3d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 8 Nov 2023 17:09:53 +1100 Subject: [PATCH] [host] nvfbc: fix damage copy when operating in 24bpp --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index eb4b4340..2b148e5c 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -726,7 +726,7 @@ static CaptureResult nvfbc_getFrame(FrameBuffer * frame, int frameIndex) unsigned int width = (min(x2 << this->diffShift, this->grabWidth) - (x << this->diffShift)) * this->bpp; rectCopyUnaligned(frameData, this->frameBuffer, ystart, yend, - x << (2 + this->diffShift), this->shmStride * this->bpp, + (x << this->diffShift) * this->bpp, this->shmStride * this->bpp, this->grabStride * this->bpp, width); x = x2;