mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] capture: add damage rectangles to capture interface
This commit is contained in:
@@ -239,6 +239,9 @@ static bool sendFrame(void)
|
||||
fi->blockScreensaver = os_blockScreensaver();
|
||||
app.frameValid = true;
|
||||
|
||||
fi->damageRectsCount = frame.damageRectsCount;
|
||||
memcpy(fi->damageRects, frame.damageRects, frame.damageRectsCount * sizeof(FrameDamageRect));
|
||||
|
||||
// put the framebuffer on the border of the next page
|
||||
// this is to allow for aligned DMA transfers by the receiver
|
||||
FrameBuffer * fb = (FrameBuffer *)(((uint8_t*)fi) + fi->offset);
|
||||
|
Reference in New Issue
Block a user