I don't know how to C

Fixes #773.
master
Camilla Berglund ago%!(EXTRA string=9 years)
parent 4bccb3dc9f
commit aaccfd8201
  1. 2
      README.md
  2. 4
      src/input.c

@ -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…
Cancel
Save