user32: Fix mouseRect computation for starting position when sizing window.
commitc7d2bcfb6114fb13eeee8d0513f4587472d20019
authorKen Thomases <ken@codeweavers.com>
Thu, 12 Sep 2013 04:45:52 +0000 (11 23:45 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 12 Sep 2013 09:07:50 +0000 (12 11:07 +0200)
tree9d74e937da57e1a59bde59af123c0e66cde1db8c
parent260250539d9a87170549a1df1ee4e0b47ad6b40e
user32: Fix mouseRect computation for starting position when sizing window.

The mouseRect is the limit of the mouse position to keep the window between
its minimum and maximum sizes.  The computation was correct if the mouse
started precisely on the window border.  But if the mouse is not exactly at
the border, then the mouse limit has to account for that, because the window
will be resized based on the distance from the starting point.
dlls/user32/winpos.c