mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[c-host] cleanup dxgi cursor code a bit
This commit is contained in:
parent
6f551c770c
commit
e7239c53fd
@ -710,9 +710,9 @@ static CaptureResult dxgi_capture()
|
|||||||
frameInfo.PointerPosition.Visible != this->lastPointerVisible
|
frameInfo.PointerPosition.Visible != this->lastPointerVisible
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this->lastPointerX = pointer.x = frameInfo.PointerPosition.Position.x;
|
this->lastPointerX = frameInfo.PointerPosition.Position.x;
|
||||||
this->lastPointerY = pointer.y = frameInfo.PointerPosition.Position.y;
|
this->lastPointerY = frameInfo.PointerPosition.Position.y;
|
||||||
this->lastPointerVisible = pointer.visible = frameInfo.PointerPosition.Visible;
|
this->lastPointerVisible = frameInfo.PointerPosition.Visible;
|
||||||
postPointer = true;
|
postPointer = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -754,7 +754,12 @@ static CaptureResult dxgi_capture()
|
|||||||
|
|
||||||
// post back the pointer information
|
// post back the pointer information
|
||||||
if (postPointer)
|
if (postPointer)
|
||||||
|
{
|
||||||
|
pointer.x = this->lastPointerX;
|
||||||
|
pointer.y = this->lastPointerY;
|
||||||
|
pointer.visible = this->lastPointerVisible;
|
||||||
this->postPointerBufferFn(pointer);
|
this->postPointerBufferFn(pointer);
|
||||||
|
}
|
||||||
|
|
||||||
return CAPTURE_RESULT_OK;
|
return CAPTURE_RESULT_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user