mirror of
https://github.com/glfw/glfw.git
synced 2024-11-15 02:34:36 +00:00
Return NULL if the monitor is not found
This commit is contained in:
parent
e8d244387f
commit
a98b1877aa
@ -3903,6 +3903,8 @@ GLFWAPI void glfwRequestWindowAttention(GLFWwindow* window);
|
|||||||
* The window should not be NULL.
|
* The window should not be NULL.
|
||||||
*
|
*
|
||||||
* @param[in] window The window to query.
|
* @param[in] window The window to query.
|
||||||
|
* @return The monitor, or `NULL` if the window is NULL or an
|
||||||
|
* [error](@ref error_handling) occurred.
|
||||||
*
|
*
|
||||||
* @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
|
* @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
|
||||||
*
|
*
|
||||||
|
@ -1772,7 +1772,7 @@ _GLFWmonitor* _glfwGetMonitorDisplayingWindowWin32(_GLFWwindow* window)
|
|||||||
return _glfw.monitors[i];
|
return _glfw.monitors[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _glfw.monitors[0];
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwFocusWindowWin32(_GLFWwindow* window)
|
void _glfwFocusWindowWin32(_GLFWwindow* window)
|
||||||
|
Loading…
Reference in New Issue
Block a user