mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] d12: fix, send the current dirtyRects, not the old
This commit is contained in:
@@ -495,10 +495,9 @@ static CaptureResult d12_waitFrame(unsigned frameBufferIndex,
|
||||
|
||||
{
|
||||
// create a clean list of rects
|
||||
FrameDamageRect allRects[this->nbDirtyRects];
|
||||
FrameDamageRect allRects[nbDirtyRects];
|
||||
unsigned count = 0;
|
||||
for(const RECT * rect = this->dirtyRects;
|
||||
rect < this->dirtyRects + this->nbDirtyRects; ++rect)
|
||||
for(const RECT * rect = dirtyRects; rect < dirtyRects + nbDirtyRects; ++rect)
|
||||
allRects[count++] = (FrameDamageRect){
|
||||
.x = rect->left,
|
||||
.y = rect->top,
|
||||
|
Reference in New Issue
Block a user