From de147988f2b7f1311ef7b0c49cd87766b35f900a Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 9 Oct 2011 17:40:29 +0200 Subject: [PATCH] Fixed editing mistakes. --- src/win32_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 6343f902..930adccf 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1005,13 +1005,13 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, if (_glfwLibrary.activeWindow != window) return 0; - x += newMouseX - window->Win32.oldMouseX; - y += newMouseY - window->Win32.oldMouseY; + x = newMouseX - window->Win32.oldMouseX; + y = newMouseY - window->Win32.oldMouseY; } else { x = newMouseX; - x = newMouseY; + y = newMouseY; } window->Win32.oldMouseX = newMouseX;