Removing isCurrentRemoteSession

This commit is contained in:
Hilderin 2023-12-24 09:46:34 -05:00
parent ded2871490
commit 697eefc6df

View File

@ -459,19 +459,11 @@ static void createBlankCursor(void)
}
// Check if the session was started in Remote Desktop
static BOOL isCurrentRemoteSession()
{
return GetSystemMetrics(SM_REMOTESESSION) > 0;
}
// Initialize for remote sessions
//
static void initRemoteSession(void)
{
//Check if the current progress was started with Remote Desktop.
_glfw.win32.isRemoteSession = isCurrentRemoteSession();
_glfw.win32.isRemoteSession = GetSystemMetrics(SM_REMOTESESSION) > 0;
//With Remote desktop, we need to create a blank cursor because of the cursor is Set to NULL
//if cannot be moved to center in capture mode. If not Remote Desktop win32.blankCursor stays NULL