From: havoc Date: Tue, 3 Apr 2018 05:14:29 +0000 (+0000) Subject: Fix mouse spinning bug in wgl client when the game window is moved left or above... X-Git-Tag: xonotic-v0.8.5~56 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74725ff53d50dcd0adb1d59ffc2439f891fdf5f6;p=xonotic%2Fdarkplaces.git Fix mouse spinning bug in wgl client when the game window is moved left or above the default monitor (negative window position). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12358 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=2ea805bf4ac39b362fe4a725e80d9687d5807a34 --- diff --git a/vid_wgl.c b/vid_wgl.c index beb393b6..329e57df 100644 --- 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;