This commit is contained in:
Scr3amer 2023-09-03 02:11:00 -04:00 committed by GitHub
parent 72b19e3070
commit 71dfe1fc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,7 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
{
MONITORINFOEXW mi;
char* accurateMonitorName = NULL;
_GLFWmonitor* monitor = (_GLFWmonitor*) data;
ZeroMemory(&mi, sizeof(mi));
mi.cbSize = sizeof(mi);
@ -198,7 +199,6 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
if (GetMonitorInfoW(handle, (MONITORINFO*) &mi) == 0)
return TRUE;
_GLFWmonitor* monitor = (_GLFWmonitor*) data;
if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0)
return TRUE;