mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 15:36:24 +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
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue