mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
Window WM_MOVE issue
When moving window to another monitor you can get negative values for Y for example. using LOWORD / HIWORD uses unsigned short so you gets values 65k+ when moving window above primary monitor.
This commit is contained in:
parent
a601c69719
commit
6e62fc240c
@ -684,7 +684,7 @@ 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user