From e4a4e2331ad64e0dd9368ce8a9a427a60f9408cc Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 4 May 2022 10:37:52 +1000 Subject: [PATCH] [host] nvfbc: fix build due to frame info structure changes --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index 47800724..db7ce8d5 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -556,13 +556,15 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame, const unsigned int maxHeight = maxFrameSize / (this->shmStride * 4); - frame->formatVer = this->formatVer; - frame->width = this->grabWidth; - frame->height = maxHeight > this->grabHeight ? this->grabHeight : maxHeight; - frame->realHeight = this->grabHeight; - frame->pitch = this->shmStride * 4; - frame->stride = this->shmStride; - frame->rotation = CAPTURE_ROT_0; + frame->formatVer = this->formatVer; + 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->pitch = this->shmStride * 4; + frame->stride = this->shmStride; + frame->rotation = CAPTURE_ROT_0; updateDamageRects(frame);