mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
parent
4bccb3dc9f
commit
aaccfd8201
@ -79,6 +79,8 @@ does not find Doxygen, the documentation will not be generated.
|
||||
|
||||
## Changelog
|
||||
|
||||
- Bugfix: The range checks for `glfwSetCursorPos` used the wrong minimum
|
||||
|
||||
|
||||
## Contact
|
||||
|
||||
|
@ -332,8 +332,8 @@ GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos)
|
||||
|
||||
_GLFW_REQUIRE_INIT();
|
||||
|
||||
if (xpos != xpos || xpos < DBL_MIN || xpos > DBL_MAX ||
|
||||
ypos != ypos || ypos < DBL_MIN || ypos > DBL_MAX)
|
||||
if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX ||
|
||||
ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX)
|
||||
{
|
||||
_glfwInputError(GLFW_INVALID_VALUE,
|
||||
"Invalid cursor position %fx%f",
|
||||
|
Loading…
Reference in New Issue
Block a user