|
|
@ -468,12 +468,9 @@ static void acquireMonitor(_GLFWwindow* window) |
|
|
|
|
|
|
|
|
|
|
|
// HACK: When mouse trails are enabled the cursor becomes invisible when
|
|
|
|
// HACK: When mouse trails are enabled the cursor becomes invisible when
|
|
|
|
// the OpenGL ICD switches to page flipping
|
|
|
|
// the OpenGL ICD switches to page flipping
|
|
|
|
if (IsWindowsXPOrGreater()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SystemParametersInfo(SPI_GETMOUSETRAILS, 0, &_glfw.win32.mouseTrailSize, 0); |
|
|
|
SystemParametersInfo(SPI_GETMOUSETRAILS, 0, &_glfw.win32.mouseTrailSize, 0); |
|
|
|
SystemParametersInfo(SPI_SETMOUSETRAILS, 0, 0, 0); |
|
|
|
SystemParametersInfo(SPI_SETMOUSETRAILS, 0, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!window->monitor->window) |
|
|
|
if (!window->monitor->window) |
|
|
|
_glfw.win32.acquiredMonitorCount++; |
|
|
|
_glfw.win32.acquiredMonitorCount++; |
|
|
@ -495,7 +492,6 @@ static void releaseMonitor(_GLFWwindow* window) |
|
|
|
SetThreadExecutionState(ES_CONTINUOUS); |
|
|
|
SetThreadExecutionState(ES_CONTINUOUS); |
|
|
|
|
|
|
|
|
|
|
|
// HACK: Restore mouse trail length saved in acquireMonitor
|
|
|
|
// HACK: Restore mouse trail length saved in acquireMonitor
|
|
|
|
if (IsWindowsXPOrGreater()) |
|
|
|
|
|
|
|
SystemParametersInfo(SPI_SETMOUSETRAILS, _glfw.win32.mouseTrailSize, 0, 0); |
|
|
|
SystemParametersInfo(SPI_SETMOUSETRAILS, _glfw.win32.mouseTrailSize, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|