diff --git a/src/win32_init.c b/src/win32_init.c index 5f30aca6..59034778 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -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