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