Author: janderwald
Date: Mon May 26 08:50:36 2008
New Revision: 33709
URL:
http://svn.reactos.org/svn/reactos?rev=33709&view=rev
Log:
- check if its a primary monitor before calculating monitor intersection rectangle
- should fix bug 3281
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] Mon May 26
08:50:36 2008
@@ -341,6 +341,11 @@
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 @@
IntersectionRect = MonitorRect;
}
- if (flags == MONITOR_DEFAULTTOPRIMARY && Monitor->IsPrimary)
- {
- PrimaryMonitor = Monitor;
- }
-
if (iCount < listSize)
{
if (hMonitorList != NULL)