From c6f67fb2dfc0974cb41796b7336bc2d47cf5dde4 Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Tue, 26 Sep 2023 15:07:19 -0400 Subject: [PATCH] Buildfix - ISO C90 --- src/win32_window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index f81999a2..234ef1e4 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1764,9 +1764,10 @@ void _glfwRequestWindowAttentionWin32(_GLFWwindow* window) _GLFWmonitor* _glfwGetMonitorDisplayingWindowWin32(_GLFWwindow* window) { + int i; HMONITOR monitor = MonitorFromWindow(window->win32.handle, MONITOR_DEFAULTTONEAREST); - for(int i = 0; i < _glfw.monitorCount; ++i) + for(i = 0; i < _glfw.monitorCount; ++i) { if(_glfw.monitors[i]->win32.handle == monitor) return _glfw.monitors[i];