mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-28 00:07:19 +00:00
[host] pw: fix build due to frame info structure changes
This commit is contained in:
parent
3d727a2254
commit
81f91caf0e
@ -423,14 +423,16 @@ static CaptureResult pipewire_waitFrame(CaptureFrame * frame,
|
|||||||
const int bpp = this->format == CAPTURE_FMT_RGBA16F ? 8 : 4;
|
const int bpp = this->format == CAPTURE_FMT_RGBA16F ? 8 : 4;
|
||||||
const unsigned int maxHeight = maxFrameSize / (this->width * bpp);
|
const unsigned int maxHeight = maxFrameSize / (this->width * bpp);
|
||||||
|
|
||||||
frame->formatVer = this->formatVer;
|
frame->formatVer = this->formatVer;
|
||||||
frame->format = this->format;
|
frame->format = this->format;
|
||||||
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->pitch = this->width * bpp;
|
frame->frameHeight = maxHeight > this->height ? this->height : maxHeight;
|
||||||
frame->stride = this->width;
|
frame->truncated = maxHeight > this->height;
|
||||||
frame->rotation = CAPTURE_ROT_0;
|
frame->pitch = this->width * bpp;
|
||||||
|
frame->stride = this->width;
|
||||||
|
frame->rotation = CAPTURE_ROT_0;
|
||||||
|
|
||||||
// TODO: implement damage.
|
// TODO: implement damage.
|
||||||
frame->damageRectsCount = 0;
|
frame->damageRectsCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user