From 1c1a2ee6274180cdd5a5ac4923a4e17286f7511a Mon Sep 17 00:00:00 2001 From: iamAdrianIusca Date: Sun, 9 Feb 2020 23:29:40 +0200 Subject: [PATCH] removed unnecessary initialization of values with zero xpos and ypos are assigned with a value inside _glfwPlatformGetMonitorPos --- src/monitor.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index 394026f5a..e07d9de49 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -326,11 +326,6 @@ GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) _GLFWmonitor* monitor = (_GLFWmonitor*) handle; assert(monitor != NULL); - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - _GLFW_REQUIRE_INIT(); _glfwPlatformGetMonitorPos(monitor, xpos, ypos);