Ken Thomases : user32: In WINPOS_SysCommandSizeMove(), fix constraining a point to a rect's right and bottom edges.
Alexandre Julliard
julliard at winehq.org
Tue Dec 17 14:05:00 CST 2013
Module: wine
Branch: master
Commit: b423532f94efe9842d4c7e30166a4a2f2121fbbb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b423532f94efe9842d4c7e30166a4a2f2121fbbb
Author: Ken Thomases <ken at codeweavers.com>
Date: Mon Dec 16 17:23:03 2013 -0600
user32: In WINPOS_SysCommandSizeMove(), fix constraining a point to a rect's right and bottom edges.
---
dlls/user32/winpos.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 7cae0ad..57fefe3 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -2747,9 +2747,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
}
pt.x = max( pt.x, mouseRect.left );
- pt.x = min( pt.x, mouseRect.right );
+ pt.x = min( pt.x, mouseRect.right - 1 );
pt.y = max( pt.y, mouseRect.top );
- pt.y = min( pt.y, mouseRect.bottom );
+ pt.y = min( pt.y, mouseRect.bottom - 1 );
if (!parent)
{
@@ -2763,9 +2763,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if (mon && GetMonitorInfoW( mon, &info ))
{
pt.x = max( pt.x, info.rcWork.left );
- pt.x = min( pt.x, info.rcWork.right );
+ pt.x = min( pt.x, info.rcWork.right - 1 );
pt.y = max( pt.y, info.rcWork.top );
- pt.y = min( pt.y, info.rcWork.bottom );
+ pt.y = min( pt.y, info.rcWork.bottom - 1 );
}
}
More information about the wine-cvs
mailing list