mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[host] nvfbc: fix damage copy when operating in 24bpp
This commit is contained in:
parent
d847c2c144
commit
8605df8c8d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user