http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635544e
)
user32: Clamp the mouse position to the window rectangle when starting a window resize.
author
Alexandre Julliard
<julliard@winehq.org>
Mon, 24 Mar 2008 17:01:02 +0000
(18:01 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 24 Mar 2008 17:01:02 +0000
(18:01 +0100)
dlls/user32/winpos.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/user32/winpos.c
b/dlls/user32/winpos.c
index 35ac5b0adc86eca23f7f003bb1048f90f1717421..04377b96e39ec40789d837bcc6a65585ffd6a09b 100644
(file)
--- a/
dlls/user32/winpos.c
+++ b/
dlls/user32/winpos.c
@@
-2300,7
+2300,8
@@
static LONG start_size_move( HWND hwnd, WPARAM wParam, POINT *capturePoint, LONG
switch(msg.message)
{
case WM_MOUSEMOVE:
- pt = msg.pt;
+ pt.x = min( max( msg.pt.x, rectWindow.left ), rectWindow.right - 1 );
+ pt.y = min( max( msg.pt.y, rectWindow.top ), rectWindow.bottom - 1 );
hittest = SendMessageW( hwnd, WM_NCHITTEST, 0, MAKELONG( pt.x, pt.y ) );
if ((hittest < HTLEFT) || (hittest > HTBOTTOMRIGHT)) hittest = 0;
break;