From 3d727a2254abcae28266fa459c3ee86b4443ead4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 4 May 2022 10:58:19 +1000 Subject: [PATCH] [host] xcb: fix build due to frame info structure changes --- host/platform/Linux/capture/XCB/src/xcb.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/host/platform/Linux/capture/XCB/src/xcb.c b/host/platform/Linux/capture/XCB/src/xcb.c index 3ee492b7..37344857 100644 --- a/host/platform/Linux/capture/XCB/src/xcb.c +++ b/host/platform/Linux/capture/XCB/src/xcb.c @@ -270,13 +270,15 @@ static CaptureResult xcb_waitFrame(CaptureFrame * frame, const unsigned int maxHeight = maxFrameSize / (this->width * 4); - frame->width = this->width; - frame->height = maxHeight > this->height ? this->height : maxHeight; - frame->realHeight = this->height; - frame->pitch = this->width * 4; - frame->stride = this->width; - frame->format = CAPTURE_FMT_BGRA; - frame->rotation = CAPTURE_ROT_0; + frame->screenWidth = this->width; + frame->screenHeight = 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->stride = this->width; + frame->format = CAPTURE_FMT_BGRA; + frame->rotation = CAPTURE_ROT_0; return CAPTURE_RESULT_OK; }