- (win32) increase compatibility with indirect renders/inputs - instruct the operating system that the cursor is actually hidden - for some API's this actually gives a hint that the cursor is grabbed, which allows for relative mouse movement. In particular, Parallels and Microsft RDP need this.

This commit is contained in:
Rachael Alexanderson 2023-02-07 13:47:39 -05:00
parent 4ac76d82d8
commit e29011ecde

View file

@ -196,10 +196,12 @@ static void SetCursorState(bool visible)
{
if (CursorState)
{
ShowCursor(1);
SetCursor((HCURSOR)(intptr_t)GetClassLongPtr(mainwindow.GetHandle(), GCLP_HCURSOR));
}
else
{
ShowCursor(0);
SetCursor(NULL);
}
}