From 7c949a13250f974a8034add8c3074e6c7d86719b Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 26 Jul 2004 18:59:40 +0000 Subject: [PATCH] Fix comment in Mouse.cpp --- src/native/win32/org_lwjgl_input_Mouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/win32/org_lwjgl_input_Mouse.cpp b/src/native/win32/org_lwjgl_input_Mouse.cpp index 29fed3dc..b6f6f96d 100644 --- a/src/native/win32/org_lwjgl_input_Mouse.cpp +++ b/src/native/win32/org_lwjgl_input_Mouse.cpp @@ -387,9 +387,9 @@ static void getGDICursorDelta(int* return_dx, int* return_dy) { GetCursorPos(&newCursorPos); ScreenToClient(getCurrentHWND(), &newCursorPos); GetClientRect(getCurrentHWND(), &clientRect); + // Clip the position to the client rect newCursorPos.x = cap(newCursorPos.x, clientRect.left, clientRect.right - 1); newCursorPos.y = cap(newCursorPos.y, clientRect.top, clientRect.bottom - 1); - // Clip the position to the client rect dx = newCursorPos.x - cursorPos.x; dy = newCursorPos.y - cursorPos.y; cursorPos.x += dx;