mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +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->screenHeight = this->grabHeight;
|
||||
frame->frameWidth = this->grabWidth;
|
||||
frame->truncated = maxHeight > this->grabHeight;
|
||||
frame->frameHeight = maxHeight > this->grabHeight ? this->grabHeight : maxHeight;
|
||||
frame->frameHeight = maxHeight < this->grabHeight ?
|
||||
maxHeight : this->grabHeight;
|
||||
frame->truncated = maxHeight < this->grabHeight;
|
||||
frame->pitch = this->shmStride * 4;
|
||||
frame->stride = this->shmStride;
|
||||
frame->rotation = CAPTURE_ROT_0;
|
||||
|
Loading…
Reference in New Issue
Block a user