Fix a few edge cases for cursor showing/not showing

This commit is contained in:
Chandler Cox
2024-05-22 21:10:01 -05:00
parent 9731437717
commit 7c4b8758ea

View File

@@ -778,7 +778,7 @@ void WindowsWindow::UpdateCursor()
if (!_lastCursorHidden)
{
_lastCursorHidden = true;
::ShowCursor(FALSE);
while(::ShowCursor(FALSE) >= 0);
}
::SetCursor(nullptr);
return;
@@ -786,7 +786,7 @@ void WindowsWindow::UpdateCursor()
else if (_lastCursorHidden)
{
_lastCursorHidden = false;
::ShowCursor(TRUE);
while(::ShowCursor(TRUE) < 0);
}
int32 index = 0;