mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 20:28:09 +00:00
- 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:
parent
76df1b3538
commit
d827979288
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue