mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[host] nvfbc: fix inverted truncated frame logic
This commit is contained in:
parent
7b7a06b63f
commit
d5e2689d64
@ -560,8 +560,9 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame,
|
|||||||
frame->screenWidth = this->grabWidth;
|
frame->screenWidth = this->grabWidth;
|
||||||
frame->screenHeight = this->grabHeight;
|
frame->screenHeight = this->grabHeight;
|
||||||
frame->frameWidth = this->grabWidth;
|
frame->frameWidth = this->grabWidth;
|
||||||
frame->truncated = maxHeight > this->grabHeight;
|
frame->frameHeight = maxHeight < this->grabHeight ?
|
||||||
frame->frameHeight = maxHeight > this->grabHeight ? this->grabHeight : maxHeight;
|
maxHeight : this->grabHeight;
|
||||||
|
frame->truncated = maxHeight < this->grabHeight;
|
||||||
frame->pitch = this->shmStride * 4;
|
frame->pitch = this->shmStride * 4;
|
||||||
frame->stride = this->shmStride;
|
frame->stride = this->shmStride;
|
||||||
frame->rotation = CAPTURE_ROT_0;
|
frame->rotation = CAPTURE_ROT_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user