Fixed reporting of negative window positions.

MSDN recommends LOWORD and HIWORD for WM_MOVE, but these do not
handle negative window positions correctly.

Fixes #172.
This commit is contained in:
Camilla Berglund
2013-11-13 12:34:43 +01:00
parent 7af99bce88
commit 109e3d13ed
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -684,7 +684,9 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
updateClipRect(window);
}
_glfwInputWindowPos(window, LOWORD(lParam), HIWORD(lParam));
_glfwInputWindowPos(window,
GET_X_LPARAM(lParam),
GET_Y_LPARAM(lParam));
return 0;
}