user32: Fix MonitorFromRect to cope with the absence of the MONITOR_DEFAULTTONEAREST flag.
rob at codeweavers.com
Fri Feb 15 09:22:44 CST 2008
Previously, the code would return any monitor found, regardless of
whether it intersected the given rect or was the nearest monitor. This
is fixed by adding a new flag that causes monitor_enum to only find the
nearest monitor if MONITOR_DEFAULTTONEAREST is specified.
Also add a trace for MonitorFromWindow, since it is called in many
places within user32 and so can't be traced using a relay trace.
dlls/user32/misc.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
Resend to take into account a suggestion from Alexandre to simplify the
code by using a flag in monitor_enum.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1605 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080215/a7fd6ec4/attachment.bin
More information about the wine-patches