mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
ISO C90
This commit is contained in:
parent
72b19e3070
commit
71dfe1fc45
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user