[host] fixed DXGI cursor offset

This commit is contained in:
Geoffrey McRae 2017-12-11 09:11:10 +11:00
parent 3d462928a6
commit 8c8d0ec7af

View File

@ -375,8 +375,8 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame)
POINT cursorPos; POINT cursorPos;
POINT cursorRect; POINT cursorRect;
cursorPos.x = m_pointerPos.x - m_shapeInfo.HotSpot.x; cursorPos.x = m_pointerPos.x;
cursorPos.y = m_pointerPos.y - m_shapeInfo.HotSpot.y; cursorPos.y = m_pointerPos.y;
cursorRect.x = m_shapeInfo.Width; cursorRect.x = m_shapeInfo.Width;
cursorRect.y = m_shapeInfo.Height; cursorRect.y = m_shapeInfo.Height;