]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix mouse spinning bug in wgl client when the game window is moved left or above...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 Apr 2018 05:14:29 +0000 (05:14 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 3 Apr 2018 13:38:26 +0000 (06:38 -0700)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12358 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2ea805bf4ac39b362fe4a725e80d9687d5807a34

vid_wgl.c

index beb393b6027eab36e8ecb2e8740f2242dd79dec7..329e57df415c15c76219e259713576a60b9369ad 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -566,8 +566,8 @@ LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM  wParam, LPARAM lParam)
                        break;
 
                case WM_MOVE:
-                       window_x = (int) LOWORD(lParam);
-                       window_y = (int) HIWORD(lParam);
+                       window_x = (short) LOWORD(lParam);
+                       window_y = (short) HIWORD(lParam);
                        VID_SetMouse(false, false, false);
                        break;