[host] fix cursor visibility bug

This commit is contained in:
Geoffrey McRae 2018-10-09 17:52:13 +11:00
parent db907b1b67
commit ce4f1be2a6

View file

@ -417,9 +417,10 @@ unsigned int Capture::DXGI::Capture()
if (GetCursorPos(&curPos) && (curPos.x != m_lastCursorX || curPos.y != m_lastCursorY)) if (GetCursorPos(&curPos) && (curPos.x != m_lastCursorX || curPos.y != m_lastCursorY))
{ {
ret |= GRAB_STATUS_CURSOR; ret |= GRAB_STATUS_CURSOR;
cursor.hasPos = true; cursor.hasPos = true;
cursor.x = m_lastCursorX = curPos.x; cursor.x = m_lastCursorX = curPos.x;
cursor.y = m_lastCursorY = curPos.y; cursor.y = m_lastCursorY = curPos.y;
cursor.visible = m_lastMouseVis;
} }
} }