1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Win32: Update all monitor handles on config change

Closes #1761.
This commit is contained in:
Doug Binks 2020-09-04 16:59:08 +01:00 committed by Camilla Löwy
parent 0b2660f39f
commit 166611cef5

View File

@ -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;
}
}