From 8c8d0ec7af422a601dddef7af27139c4befe02b2 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 11 Dec 2017 09:11:10 +1100 Subject: [PATCH] [host] fixed DXGI cursor offset --- host/Capture/DXGI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index 2f275072..123fc06a 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -375,8 +375,8 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame) POINT cursorPos; POINT cursorRect; - cursorPos.x = m_pointerPos.x - m_shapeInfo.HotSpot.x; - cursorPos.y = m_pointerPos.y - m_shapeInfo.HotSpot.y; + cursorPos.x = m_pointerPos.x; + cursorPos.y = m_pointerPos.y; cursorRect.x = m_shapeInfo.Width; cursorRect.y = m_shapeInfo.Height;