mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
Removing isCurrentRemoteSession
This commit is contained in:
parent
ded2871490
commit
697eefc6df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user