user32: Fix mouseRect computation for starting position when sizing window.
commit95655f577aad8d5bf8d0f7e29aa3ee6dde9b0d78
authorKen Thomases <ken@codeweavers.com>
Thu, 12 Sep 2013 04:45:52 +0000 (11 23:45 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 15 Nov 2013 13:12:00 +0000 (15 14:12 +0100)
tree0d914e3a42e16ca553a87499b6989be79559a817
parentcaa9744b339228693a1e2667044013604438dccf
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.

(cherry picked from commit c7d2bcfb6114fb13eeee8d0513f4587472d20019)
dlls/user32/winpos.c