Fix comment in Mouse.cpp

This commit is contained in:
Elias Naur 2004-07-26 18:59:40 +00:00
parent 0aea2bccd0
commit 7c949a1325
1 changed files with 1 additions and 1 deletions

View File

@ -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;