From ce4f1be2a63fc2e9697e6676de03bb27449abb4a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 9 Oct 2018 17:52:13 +1100 Subject: [PATCH] [host] fix cursor visibility bug --- host/Capture/DXGI.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index 1b117044..1129d023 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -417,9 +417,10 @@ unsigned int Capture::DXGI::Capture() if (GetCursorPos(&curPos) && (curPos.x != m_lastCursorX || curPos.y != m_lastCursorY)) { ret |= GRAB_STATUS_CURSOR; - cursor.hasPos = true; - cursor.x = m_lastCursorX = curPos.x; - cursor.y = m_lastCursorY = curPos.y; + cursor.hasPos = true; + cursor.x = m_lastCursorX = curPos.x; + cursor.y = m_lastCursorY = curPos.y; + cursor.visible = m_lastMouseVis; } }