user32: Fix MonitorFromRect to cope with the absence of the MONITOR_DEFAULTTONEAREST flag.

Robert Shearman rob at codeweavers.com
Thu Feb 14 05:31:53 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 taking into account the final values of info.max_area and 
info.min_distance and the flags passed in.

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 |   16 +++++++++++++---
  1 files changed, 13 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3464a3d809388ff5240b7855694637aa02328e04.diff
Type: text/x-patch
Size: 1575 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080214/8fd62751/attachment.bin 


More information about the wine-patches mailing list