[vendor] Fixed DXGI mouse flicker/dissapear when there is no activity

This commit is contained in:
Geoffrey McRae 2017-11-03 00:40:00 +11:00
parent dfa2a5809a
commit dba6720724

View file

@ -97,7 +97,8 @@ HRESULT DXGIOutputDuplication::AcquireNextFrame(IDXGISurface1** pDXGISurface, DX
*pDXGISurface = spDXGISurface.Detach(); *pDXGISurface = spDXGISurface.Detach();
if (pDXGIPointer)
if (pDXGIPointer && fi.LastMouseUpdateTime.QuadPart != 0)
pDXGIPointer->GetFrameInfo().PointerPosition.Visible = fi.PointerPosition.Visible; pDXGIPointer->GetFrameInfo().PointerPosition.Visible = fi.PointerPosition.Visible;
// Updating mouse pointer, if visible // Updating mouse pointer, if visible