Commit in reactos/subsys/win32k/ntuser on MAIN
painting.c+2-21.78 -> 1.79
vis.c+4-41.24 -> 1.25
windc.c+11-111.60 -> 1.61
winpos.c+4-31.103 -> 1.104
+21-20
4 modified files
don't use the window region when minimized

reactos/subsys/win32k/ntuser
painting.c 1.78 -> 1.79
diff -u -r1.78 -r1.79
--- painting.c	23 Mar 2004 11:20:58 -0000	1.78
+++ painting.c	23 Mar 2004 18:08:07 -0000	1.79
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- *  $Id: painting.c,v 1.78 2004/03/23 11:20:58 gvg Exp $
+ *  $Id: painting.c,v 1.79 2004/03/23 18:08:07 weiden Exp $
  *
  *  COPYRIGHT:        See COPYING in the top level directory
  *  PROJECT:          ReactOS kernel
@@ -213,7 +213,7 @@
     */
 
    IntLockWindowUpdate(Window);
-   if (!Window->WindowRegion)
+   if (!Window->WindowRegion || (Window->Style & WS_MINIMIZE))
    {
       HRGN hRgnWindow;
 

reactos/subsys/win32k/ntuser
vis.c 1.24 -> 1.25
diff -u -r1.24 -r1.25
--- vis.c	23 Mar 2004 16:32:20 -0000	1.24
+++ vis.c	23 Mar 2004 18:08:07 -0000	1.25
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: vis.c,v 1.24 2004/03/23 16:32:20 weiden Exp $
+ * $Id: vis.c,v 1.25 2004/03/23 18:08:07 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -104,7 +104,7 @@
             {
                ClipRgn = UnsafeIntCreateRectRgnIndirect(&CurrentSibling->WindowRect);
                /* Combine it with the window region if available */
-               if(CurrentSibling->WindowRegion)
+               if(CurrentSibling->WindowRegion && !(CurrentSibling->Style & WS_MINIMIZE))
                {
                  NtGdiOffsetRgn(ClipRgn, -CurrentSibling->WindowRect.left, -CurrentSibling->WindowRect.top);
                  NtGdiCombineRgn(ClipRgn, ClipRgn, CurrentSibling->WindowRegion, RGN_AND);
@@ -133,7 +133,7 @@
          {
             ClipRgn = UnsafeIntCreateRectRgnIndirect(&CurrentWindow->WindowRect);
             /* Combine it with the window region if available */
-            if(CurrentWindow->WindowRegion)
+            if(CurrentWindow->WindowRegion && !(CurrentWindow->Style & WS_MINIMIZE))
             {
               NtGdiOffsetRgn(ClipRgn, -CurrentWindow->WindowRect.left, -CurrentWindow->WindowRect.top);
               NtGdiCombineRgn(ClipRgn, ClipRgn, CurrentWindow->WindowRegion, RGN_AND);
@@ -147,7 +147,7 @@
       IntUnLockRelatives(Window);
    }
    
-   if(Window->WindowRegion)
+   if(Window->WindowRegion && !(Window->Style & WS_MINIMIZE))
    {
      NtGdiOffsetRgn(VisRgn, -LeftOffset, -TopOffset);
      NtGdiCombineRgn(VisRgn, VisRgn, Window->WindowRegion, RGN_AND);

reactos/subsys/win32k/ntuser
windc.c 1.60 -> 1.61
diff -u -r1.60 -r1.61
--- windc.c	23 Mar 2004 16:32:20 -0000	1.60
+++ windc.c	23 Mar 2004 18:08:07 -0000	1.61
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: windc.c,v 1.60 2004/03/23 16:32:20 weiden Exp $
+/* $Id: windc.c,v 1.61 2004/03/23 18:08:07 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -485,7 +485,7 @@
       if (Dce->hClipRgn && Window->UpdateRegion)
         {
           NtGdiCombineRgn(Dce->hClipRgn, Window->UpdateRegion, NULL, RGN_COPY);
-          if(Window->WindowRegion)
+          if(Window->WindowRegion && !(Window->Style & WS_MINIMIZE))
             NtGdiCombineRgn(Dce->hClipRgn, Dce->hClipRgn, Window->WindowRegion, RGN_AND);
           if (!(Flags & DCX_WINDOW))
             {
@@ -502,24 +502,24 @@
       if (!(Flags & DCX_WINDOW))
         {
           Dce->hClipRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
-          if(Window->WindowRegion)
+          if(!Window->WindowRegion || (Window->Style & WS_MINIMIZE))
+          {
+            NtGdiOffsetRgn(Dce->hClipRgn, -Window->ClientRect.left, -Window->ClientRect.top);
+          }
+          else
           {
             NtGdiOffsetRgn(Dce->hClipRgn, -Window->WindowRect.left, -Window->WindowRect.top);
             NtGdiCombineRgn(Dce->hClipRgn, Dce->hClipRgn, Window->WindowRegion, RGN_AND);
             NtGdiOffsetRgn(Dce->hClipRgn, -(Window->ClientRect.left - Window->WindowRect.left), 
                                           -(Window->ClientRect.top - Window->WindowRect.top));
           }
-          else
-          {
-            NtGdiOffsetRgn(Dce->hClipRgn, -Window->ClientRect.left, -Window->ClientRect.top);
-          }
         }
       else
         {
           Dce->hClipRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
           NtGdiOffsetRgn(Dce->hClipRgn, -Window->WindowRect.left,
              -Window->WindowRect.top);
-          if(Window->WindowRegion)
+          if(Window->WindowRegion && !(Window->Style & WS_MINIMIZE))
             NtGdiCombineRgn(Dce->hClipRgn, Dce->hClipRgn, Window->WindowRegion, RGN_AND);
         }
     }
@@ -528,10 +528,10 @@
       Dce->hClipRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
       if (Dce->hClipRgn)
         {
-          if(Window->WindowRegion)
-            NtGdiCombineRgn(Dce->hClipRgn, ClipRegion, Window->WindowRegion, RGN_AND);
-          else
+          if(!Window->WindowRegion || (Window->Style & WS_MINIMIZE))
             NtGdiCombineRgn(Dce->hClipRgn, ClipRegion, NULL, RGN_COPY);
+          else
+            NtGdiCombineRgn(Dce->hClipRgn, ClipRegion, Window->WindowRegion, RGN_AND);
         }
       NtGdiDeleteObject(ClipRegion);
     }

reactos/subsys/win32k/ntuser
winpos.c 1.103 -> 1.104
diff -u -r1.103 -r1.104
--- winpos.c	23 Mar 2004 16:32:20 -0000	1.103
+++ winpos.c	23 Mar 2004 18:08:07 -0000	1.104
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: winpos.c,v 1.103 2004/03/23 16:32:20 weiden Exp $
+/* $Id: winpos.c,v 1.104 2004/03/23 18:08:07 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -1338,8 +1338,9 @@
            Point->x < Current->WindowRect.right &&
            Point->y >= Current->WindowRect.top &&
            Point->y < Current->WindowRect.bottom) &&
-           (!Current->WindowRegion || NtGdiPtInRegion(Current->WindowRegion, 
-             (INT)(Point->x - Current->WindowRect.left), (INT)(Point->y - Current->WindowRect.top)))
+           (!Current->WindowRegion || (Current->Style & WS_MINIMIZE) || 
+            NtGdiPtInRegion(Current->WindowRegion, (INT)(Point->x - Current->WindowRect.left), 
+                            (INT)(Point->y - Current->WindowRect.top)))
         )
 	  {
 	if(*Window)
CVSspam 0.2.8