[host] fix cursor visibility bug
This commit is contained in:
1 parent
db907b1b67
commit
ce4f1be2a6
1 file changed
+4
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user