From 71dfe1fc457ae4891ab973971982426f3ab7ae7a Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Sun, 3 Sep 2023 02:11:00 -0400 Subject: [PATCH] ISO C90 --- src/win32_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 9b137272..8791f39b 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -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;