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;
|
MONITORINFOEXW mi;
|
||||||
char* accurateMonitorName = NULL;
|
char* accurateMonitorName = NULL;
|
||||||
|
_GLFWmonitor* monitor = (_GLFWmonitor*) data;
|
||||||
|
|
||||||
ZeroMemory(&mi, sizeof(mi));
|
ZeroMemory(&mi, sizeof(mi));
|
||||||
mi.cbSize = sizeof(mi);
|
mi.cbSize = sizeof(mi);
|
||||||
@ -198,7 +199,6 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
|||||||
if (GetMonitorInfoW(handle, (MONITORINFO*) &mi) == 0)
|
if (GetMonitorInfoW(handle, (MONITORINFO*) &mi) == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
_GLFWmonitor* monitor = (_GLFWmonitor*) data;
|
|
||||||
if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0)
|
if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user