mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] xcb: fix build due to frame info structure changes
This commit is contained in:
parent
e4a4e2331a
commit
3d727a2254
@ -270,9 +270,11 @@ static CaptureResult xcb_waitFrame(CaptureFrame * frame,
|
|||||||
|
|
||||||
const unsigned int maxHeight = maxFrameSize / (this->width * 4);
|
const unsigned int maxHeight = maxFrameSize / (this->width * 4);
|
||||||
|
|
||||||
frame->width = this->width;
|
frame->screenWidth = this->width;
|
||||||
frame->height = maxHeight > this->height ? this->height : maxHeight;
|
frame->screenHeight = this->height;
|
||||||
frame->realHeight = this->height;
|
frame->frameWidth = this->width;
|
||||||
|
frame->frameHeight = maxHeight > this->height ? this->height : maxHeight;
|
||||||
|
frame->truncated = maxHeight > this->height;
|
||||||
frame->pitch = this->width * 4;
|
frame->pitch = this->width * 4;
|
||||||
frame->stride = this->width;
|
frame->stride = this->width;
|
||||||
frame->format = CAPTURE_FMT_BGRA;
|
frame->format = CAPTURE_FMT_BGRA;
|
||||||
|
Loading…
Reference in New Issue
Block a user