Commit in reactos/subsys/win32k on MAIN
dib/dib1bpp.c+6-61.21 -> 1.22
eng/bitblt.c+7-31.45 -> 1.46
+13-9
2 modified files
little clean-up

reactos/subsys/win32k/dib
dib1bpp.c 1.21 -> 1.22
diff -u -r1.21 -r1.22
--- dib1bpp.c	7 Apr 2004 15:37:50 -0000	1.21
+++ dib1bpp.c	7 Apr 2004 16:38:27 -0000	1.22
@@ -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: dib1bpp.c,v 1.21 2004/04/07 15:37:50 weiden Exp $ */
+/* $Id: dib1bpp.c,v 1.22 2004/04/07 16:38:27 weiden Exp $ */
 
 #undef WIN32_LEAN_AND_MEAN
 #include <windows.h>
@@ -478,10 +478,10 @@
             Pattern = 0;
             for (k = 0; k < 8; k++)
             {
-               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k) % PatternWidth, Y % PatternHeight) << (7 - k));
-               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 8) % PatternWidth, Y % PatternHeight) << (8 + (7 - k)));
-               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 16) % PatternWidth, Y % PatternHeight) << (16 + (7 - k)));
-               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 24) % PatternWidth, Y % PatternHeight) << (24 + (7 - k)));
+               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k) % PatternWidth, PatternY) << (7 - k));
+               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 8) % PatternWidth, PatternY) << (8 + (7 - k)));
+               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 16) % PatternWidth, PatternY) << (16 + (7 - k)));
+               Pattern |= (DIB_1BPP_GetPixel(PatternObj, (X + k + 24) % PatternWidth, PatternY) << (24 + (7 - k)));
             }
          }
 
@@ -503,7 +503,7 @@
 
             if (UsesPattern)
             {
-               Pattern = DIB_1BPP_GetPixel(PatternObj, X % PatternWidth, Y % PatternHeight);
+               Pattern = DIB_1BPP_GetPixel(PatternObj, X % PatternWidth, PatternY);
             }
 
             DIB_1BPP_PutPixel(DestSurf, X, Y, DIB_DoRop(Rop4, Dest, Source, Pattern) & 0xF);

reactos/subsys/win32k/eng
bitblt.c 1.45 -> 1.46
diff -u -r1.45 -r1.46
--- bitblt.c	6 Apr 2004 21:53:48 -0000	1.45
+++ bitblt.c	7 Apr 2004 16:38:27 -0000	1.46
@@ -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: bitblt.c,v 1.45 2004/04/06 21:53:48 weiden Exp $
+/* $Id: bitblt.c,v 1.46 2004/04/07 16:38:27 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -114,7 +114,7 @@
    PGDIBRUSHOBJ GdiBrush;
    HBITMAP PatternSurface = NULL;
    PSURFOBJ PatternObj;
-   ULONG PatternWidth, PatternHeight;
+   ULONG PatternWidth, PatternHeight, PatternY;
   
    if (Mask == NULL)
    {
@@ -147,6 +147,10 @@
    {
       lMask = tMask;
       c8 = SourcePoint->x & 0x07;
+      
+      if(PatternSurface)
+         PatternY = (DestRect->top + j) % PatternHeight;
+      
       for (i = 0; i < dx; i++)
       {
          if (0 != (*lMask & maskbit[c8]))
@@ -158,7 +162,7 @@
             else
             {
                DestGDI->DIB_PutPixel(Dest, DestRect->left + i, DestRect->top + j,
-                  DIB_1BPP_GetPixel(PatternObj, (DestRect->left + i) % PatternWidth, (DestRect->top + j) % PatternHeight) ? GdiBrush->crFore : GdiBrush->crBack);
+                  DIB_1BPP_GetPixel(PatternObj, (DestRect->left + i) % PatternWidth, PatternY) ? GdiBrush->crFore : GdiBrush->crBack);
             }
          }
          c8++;
CVSspam 0.2.8