- check if its a primary monitor before calculating monitor intersection rectangle

- should fix bug 3281

svn path=/trunk/; revision=33709
This commit is contained in:
Johannes Anderwald 2008-05-26 13:50:36 +00:00
parent 76df1b3538
commit d827979288

View file

@ -341,6 +341,11 @@ IntGetMonitorsFromRect(OPTIONAL IN LPCRECT pRect,
DPRINT("MonitorRect: left = %d, top = %d, right = %d, bottom = %d\n",
MonitorRect.left, MonitorRect.top, MonitorRect.right, MonitorRect.bottom);
if (flags == MONITOR_DEFAULTTOPRIMARY && Monitor->IsPrimary)
{
PrimaryMonitor = Monitor;
}
if (pRect != NULL)
{
BOOL intersects = TRUE;
@ -384,11 +389,6 @@ IntGetMonitorsFromRect(OPTIONAL IN LPCRECT pRect,
IntersectionRect = MonitorRect;
}
if (flags == MONITOR_DEFAULTTOPRIMARY && Monitor->IsPrimary)
{
PrimaryMonitor = Monitor;
}
if (iCount < listSize)
{
if (hMonitorList != NULL)