user32: Fix distance calculation for MONITOR_DEFAULTTONEAREST.
commit304ab65dbf0f143df5c92923c3b93cbeecb40d1a
authorKen Thomases <ken@codeweavers.com>
Thu, 12 Dec 2013 22:49:44 +0000 (12 16:49 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 13 Dec 2013 11:05:27 +0000 (13 12:05 +0100)
tree5b4ccc89008ec014b60fe0c6cf4c9269cdb80267
parent09b817aaf80d4fdc59e414fa05e21cb2dfd710fd
user32: Fix distance calculation for MONITOR_DEFAULTTONEAREST.

If the target rect is outside a monitor rect but is between its extremes in
one dimension, that dimension should contribute 0 to the distance, rather than
some arbitrary amount.
dlls/user32/misc.c