mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
fixed incorrect LPARAM type casts in the WM_MOVE handler (the coordinates are signed)
This commit is contained in:
parent
7a83c0d6c4
commit
51809f8276
1 changed files with 2 additions and 2 deletions
|
@ -262,8 +262,8 @@ LRESULT CALLBACK MainWndProc (
|
|||
AdjustWindowRect( &r, GetWindowLong( hWnd, GWL_STYLE ), FALSE );
|
||||
|
||||
const RECT& monRect = g_wv.monitorRects[g_wv.monitor];
|
||||
const int x = LOWORD( lParam );
|
||||
const int y = HIWORD( lParam );
|
||||
const int x = (int)(short)LOWORD( lParam );
|
||||
const int y = (int)(short)HIWORD( lParam );
|
||||
Cvar_SetValue( "vid_xpos", x + r.left - monRect.left );
|
||||
Cvar_SetValue( "vid_ypos", y + r.top - monRect.top );
|
||||
vid_xpos->modified = qfalse;
|
||||
|
|
Loading…
Reference in a new issue