mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
Win32 update monitor handles when monitors are added or removed
This commit is contained in:
parent
bb1d917c2f
commit
824c4cb651
@ -185,6 +185,8 @@ void _glfwPollMonitorsWin32(void)
|
||||
display.DeviceName) == 0)
|
||||
{
|
||||
disconnected[i] = NULL;
|
||||
// handle may have changed, update
|
||||
EnumDisplayMonitors(NULL, NULL, monitorCallback, (LPARAM) _glfw.monitors[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user