[ros-diffs] [janderwald] 33709: - check if its a primary monitor before calculating monitor intersection rectangle - should fix bug 3281

janderwald at svn.reactos.org janderwald at svn.reactos.org
Mon May 26 15:50:36 CEST 2008


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/ntuser/monitor.c?rev=33709&r1=33708&r2=33709&view=diff
==============================================================================
--- 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)



More information about the Ros-diffs mailing list