Skip to content

Commit

Permalink
[host] d12: fix failure to send mouse shape updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Jan 30, 2024
1 parent cae4b2f commit 4523b9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions host/platform/Windows/capture/D12/backend/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ static CaptureResult d12_dd_capture(unsigned frameBufferIndex)
}

bool postPointer = false;
bool postShape = false;
CapturePointer pointer = {0};

// if the pointer has moved
Expand All @@ -354,7 +353,7 @@ static CaptureResult d12_dd_capture(unsigned frameBufferIndex)
// if the pointer shape has changed
if (frameInfo.PointerShapeBufferSize > 0)
d12_dd_handlePointerShape(
&pointer, frameInfo.PointerShapeBufferSize, &postShape);
&pointer, frameInfo.PointerShapeBufferSize, &postPointer);

if (postPointer)
d12_updatePointer(&pointer, this->shapeBuffer, this->shapeBufferSize);
Expand Down

0 comments on commit 4523b9b

Please sign in to comment.