mirror of
https://github.com/glfw/glfw.git
synced 2025-07-27 10:00:03 +00:00
Fixing the build with MinGW
This commit is contained in:
parent
3a60c56cd4
commit
c302bb4e1a
@ -459,24 +459,6 @@ static void createBlankCursor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Initialize for remote sessions
|
|
||||||
//
|
|
||||||
static void initRemoteSession(void)
|
|
||||||
{
|
|
||||||
//Check if the current progress was started with Remote Desktop.
|
|
||||||
_glfw.win32.isRemoteSession = isCurrentRemoteSession();
|
|
||||||
|
|
||||||
//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
|
|
||||||
//and will perform has before (normal).
|
|
||||||
if (_glfw.win32.isRemoteSession)
|
|
||||||
{
|
|
||||||
createBlankCursor();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Check if the session was started in Remote Desktop
|
// Check if the session was started in Remote Desktop
|
||||||
// Reference: https://learn.microsoft.com/en-us/windows/win32/termserv/detecting-the-terminal-services-environment
|
// Reference: https://learn.microsoft.com/en-us/windows/win32/termserv/detecting-the-terminal-services-environment
|
||||||
static BOOL isCurrentRemoteSession()
|
static BOOL isCurrentRemoteSession()
|
||||||
@ -536,6 +518,23 @@ static BOOL isCurrentRemoteSession()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Initialize for remote sessions
|
||||||
|
//
|
||||||
|
static void initRemoteSession(void)
|
||||||
|
{
|
||||||
|
//Check if the current progress was started with Remote Desktop.
|
||||||
|
_glfw.win32.isRemoteSession = isCurrentRemoteSession();
|
||||||
|
|
||||||
|
//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
|
||||||
|
//and will perform has before (normal).
|
||||||
|
if (_glfw.win32.isRemoteSession)
|
||||||
|
{
|
||||||
|
createBlankCursor();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
////// GLFW internal API //////
|
////// GLFW internal API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user