mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Buildfix - ISO C90
This commit is contained in:
parent
d9b93315ba
commit
c6f67fb2df
@ -1764,9 +1764,10 @@ void _glfwRequestWindowAttentionWin32(_GLFWwindow* window)
|
|||||||
|
|
||||||
_GLFWmonitor* _glfwGetMonitorDisplayingWindowWin32(_GLFWwindow* window)
|
_GLFWmonitor* _glfwGetMonitorDisplayingWindowWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
HMONITOR monitor = MonitorFromWindow(window->win32.handle, MONITOR_DEFAULTTONEAREST);
|
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)
|
if(_glfw.monitors[i]->win32.handle == monitor)
|
||||||
return _glfw.monitors[i];
|
return _glfw.monitors[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user