Removed duplicates of centerCursor function

This commit is contained in:
iamCaveLamp
2018-12-24 22:24:51 +02:00
committed by Camilla Löwy
parent 757cd3aea2
commit a46104ee69
6 changed files with 17 additions and 39 deletions
+1 -6
View File
@@ -143,7 +143,6 @@ void _glfwInputWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor)
window->monitor = monitor;
}
//////////////////////////////////////////////////////////////////////////
////// GLFW public API //////
//////////////////////////////////////////////////////////////////////////
@@ -230,11 +229,7 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
if (window->monitor)
{
if (wndconfig.centerCursor)
{
int width, height;
_glfwPlatformGetWindowSize(window, &width, &height);
_glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0);
}
_glfwCenterCursor(window);
}
else
{