mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +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",
|
DPRINT("MonitorRect: left = %d, top = %d, right = %d, bottom = %d\n",
|
||||||
MonitorRect.left, MonitorRect.top, MonitorRect.right, MonitorRect.bottom);
|
MonitorRect.left, MonitorRect.top, MonitorRect.right, MonitorRect.bottom);
|
||||||
|
|
||||||
|
if (flags == MONITOR_DEFAULTTOPRIMARY && Monitor->IsPrimary)
|
||||||
|
{
|
||||||
|
PrimaryMonitor = Monitor;
|
||||||
|
}
|
||||||
|
|
||||||
if (pRect != NULL)
|
if (pRect != NULL)
|
||||||
{
|
{
|
||||||
BOOL intersects = TRUE;
|
BOOL intersects = TRUE;
|
||||||
|
@ -384,11 +389,6 @@ IntGetMonitorsFromRect(OPTIONAL IN LPCRECT pRect,
|
||||||
IntersectionRect = MonitorRect;
|
IntersectionRect = MonitorRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags == MONITOR_DEFAULTTOPRIMARY && Monitor->IsPrimary)
|
|
||||||
{
|
|
||||||
PrimaryMonitor = Monitor;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (iCount < listSize)
|
if (iCount < listSize)
|
||||||
{
|
{
|
||||||
if (hMonitorList != NULL)
|
if (hMonitorList != NULL)
|
||||||
|
|
Loading…
Reference in a new issue