mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
removed unnecessary initialization of values with zero
xpos and ypos are assigned with a value inside _glfwPlatformGetMonitorPos
This commit is contained in:
parent
76406c7894
commit
1c1a2ee627
@ -326,11 +326,6 @@ GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos)
|
|||||||
_GLFWmonitor* monitor = (_GLFWmonitor*) handle;
|
_GLFWmonitor* monitor = (_GLFWmonitor*) handle;
|
||||||
assert(monitor != NULL);
|
assert(monitor != NULL);
|
||||||
|
|
||||||
if (xpos)
|
|
||||||
*xpos = 0;
|
|
||||||
if (ypos)
|
|
||||||
*ypos = 0;
|
|
||||||
|
|
||||||
_GLFW_REQUIRE_INIT();
|
_GLFW_REQUIRE_INIT();
|
||||||
|
|
||||||
_glfwPlatformGetMonitorPos(monitor, xpos, ypos);
|
_glfwPlatformGetMonitorPos(monitor, xpos, ypos);
|
||||||
|
Loading…
Reference in New Issue
Block a user