1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

I don't know how to C

Fixes #773.
This commit is contained in:
Camilla Berglund 2016-06-05 19:36:03 +02:00
parent 4bccb3dc9f
commit aaccfd8201
2 changed files with 4 additions and 2 deletions

View File

@ -79,6 +79,8 @@ does not find Doxygen, the documentation will not be generated.
## Changelog ## Changelog
- Bugfix: The range checks for `glfwSetCursorPos` used the wrong minimum
## Contact ## Contact

View File

@ -332,8 +332,8 @@ GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos)
_GLFW_REQUIRE_INIT(); _GLFW_REQUIRE_INIT();
if (xpos != xpos || xpos < DBL_MIN || xpos > DBL_MAX || if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX ||
ypos != ypos || ypos < DBL_MIN || ypos > DBL_MAX) ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX)
{ {
_glfwInputError(GLFW_INVALID_VALUE, _glfwInputError(GLFW_INVALID_VALUE,
"Invalid cursor position %fx%f", "Invalid cursor position %fx%f",