[host] nvfbc: fix damage copy when operating in 24bpp

This commit is contained in:
Geoffrey McRae 2023-11-08 17:09:53 +11:00
parent d847c2c144
commit 8605df8c8d

View File

@ -726,7 +726,7 @@ static CaptureResult nvfbc_getFrame(FrameBuffer * frame, int frameIndex)
unsigned int width = (min(x2 << this->diffShift, this->grabWidth) - unsigned int width = (min(x2 << this->diffShift, this->grabWidth) -
(x << this->diffShift)) * this->bpp; (x << this->diffShift)) * this->bpp;
rectCopyUnaligned(frameData, this->frameBuffer, ystart, yend, 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); this->grabStride * this->bpp, width);
x = x2; x = x2;