From 16f036bb53aa986de35570da71f94d525a85b16b Mon Sep 17 00:00:00 2001 From: siavash Date: Fri, 5 Jul 2013 00:06:04 +0430 Subject: [PATCH] Very small change. --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index c415462e..f63d71e1 100644 --- a/src/input.c +++ b/src/input.c @@ -64,7 +64,7 @@ static void setCursorMode(_GLFWwindow* window, int newMode) _glfw.cursorPosY = window->cursorPosY; _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); + _glfwPlatformSetCursorPos(window, width * 0.5, height * 0.5); } _glfwPlatformSetCursorMode(window, newMode);