From a601c69719489eab3264845e008573f21ea252a3 Mon Sep 17 00:00:00 2001 From: Kamil Date: Tue, 12 Nov 2013 03:08:18 +0100 Subject: [PATCH] Mouse "walking" Using int insted of double helps keep conversion and subtraction a few lines below accurate. Using double in some cases couse to cursor "walking" when cursorMode == DISABLED . Tested. --- src/win32_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 2a1ba6f8b..ae63057fc 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -604,7 +604,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, if (newCursorX != window->win32.oldCursorX || newCursorY != window->win32.oldCursorY) { - double x, y; + int x, y; if (window->cursorMode == GLFW_CURSOR_DISABLED) {