mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] nvfbc: fix build due to frame info structure changes
This commit is contained in:
parent
8682ec207e
commit
e4a4e2331a
@ -556,13 +556,15 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame,
|
|||||||
|
|
||||||
const unsigned int maxHeight = maxFrameSize / (this->shmStride * 4);
|
const unsigned int maxHeight = maxFrameSize / (this->shmStride * 4);
|
||||||
|
|
||||||
frame->formatVer = this->formatVer;
|
frame->formatVer = this->formatVer;
|
||||||
frame->width = this->grabWidth;
|
frame->screenWidth = this->grabWidth;
|
||||||
frame->height = maxHeight > this->grabHeight ? this->grabHeight : maxHeight;
|
frame->screenHeight = this->grabHeight;
|
||||||
frame->realHeight = this->grabHeight;
|
frame->frameWidth = this->grabWidth;
|
||||||
frame->pitch = this->shmStride * 4;
|
frame->truncated = maxHeight > this->grabHeight;
|
||||||
frame->stride = this->shmStride;
|
frame->frameHeight = maxHeight > this->grabHeight ? this->grabHeight : maxHeight;
|
||||||
frame->rotation = CAPTURE_ROT_0;
|
frame->pitch = this->shmStride * 4;
|
||||||
|
frame->stride = this->shmStride;
|
||||||
|
frame->rotation = CAPTURE_ROT_0;
|
||||||
|
|
||||||
updateDamageRects(frame);
|
updateDamageRects(frame);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user