Buildfix - ISO C90

This commit is contained in:
Scr3amer 2023-09-26 15:07:19 -04:00 committed by GitHub
parent d9b93315ba
commit c6f67fb2df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];