mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-12 20:27:53 +00:00
[vendor] Fixed DXGI mouse flicker/dissapear when there is no activity
This commit is contained in:
parent
dfa2a5809a
commit
dba6720724
1 changed files with 2 additions and 1 deletions
3
vendor/DXGICapture/DXGIManager.cpp
vendored
3
vendor/DXGICapture/DXGIManager.cpp
vendored
|
@ -97,7 +97,8 @@ HRESULT DXGIOutputDuplication::AcquireNextFrame(IDXGISurface1** pDXGISurface, DX
|
|||
|
||||
*pDXGISurface = spDXGISurface.Detach();
|
||||
|
||||
if (pDXGIPointer)
|
||||
|
||||
if (pDXGIPointer && fi.LastMouseUpdateTime.QuadPart != 0)
|
||||
pDXGIPointer->GetFrameInfo().PointerPosition.Visible = fi.PointerPosition.Visible;
|
||||
|
||||
// Updating mouse pointer, if visible
|
||||
|
|
Loading…
Reference in a new issue