From 662958ef119c940f25ff1c5bd823e457727c9a49 Mon Sep 17 00:00:00 2001 From: Noel Cower Date: Tue, 16 Apr 2013 16:49:43 -0600 Subject: [PATCH] Make resetMouseCursor consistent with setCursorMode --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 53681199..eb545250 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -54,7 +54,7 @@ static void resetMouseCursor(_GLFWwindow *window) { int width, height; _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2, height / 2); + _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); } }