From 697eefc6dfe9de4c35e7f38670bef5db7a634837 Mon Sep 17 00:00:00 2001 From: Hilderin <81109165+Hilderin@users.noreply.github.com> Date: Sun, 24 Dec 2023 09:46:34 -0500 Subject: [PATCH] Removing isCurrentRemoteSession --- src/win32_init.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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