From 41be34eadf6fcbc1bb1a69b94c1262cae847faf8 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 12 Jun 2012 02:29:18 +0200 Subject: [PATCH] Fixed window position on Win32. --- src/win32_window.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) mode change 100644 => 100755 src/win32_window.c diff --git a/src/win32_window.c b/src/win32_window.c old mode 100644 new mode 100755 index 6a29c86f..4990be45 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1047,11 +1047,6 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, case WM_MOVE: { - RECT rect; - - GetClientRect(window->Win32.handle, &rect); - AdjustWindowRectEx(&rect, window->Win32.dwStyle, FALSE, window->Win32.dwExStyle); - // If window is in cursor capture mode, update clipping rect if (window->cursorMode == GLFW_CURSOR_CAPTURED) { @@ -1060,9 +1055,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, ClipCursor(&ClipWindowRect); } - _glfwInputWindowPos(window, - LOWORD(lParam) - rect.left, - HIWORD(lParam) - rect.top); + _glfwInputWindowPos(window, LOWORD(lParam), HIWORD(lParam)); return 0; }