[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 1 Mar 2011 09:17:58 +0000 (09:17 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 1 Mar 2011 09:17:58 +0000 (09:17 +0000)
Do raster operation on 4 bytes instead of only 3. Fixes ...
maybe noone has noticed yet ;-)

svn path=/trunk/; revision=50942

reactos/subsystems/win32/win32k/dib/dib.c

index 3776787..516b4bd 100644 (file)
@@ -179,7 +179,7 @@ static const ULONG ExpandDest[16] =
   Rop |= (Rop << 24) | (Rop << 16) | (Rop << 8);
   /* Do the operation on four bits simultaneously. */
   Result = 0;
-  for (i = 0; i < 6; i++)
+  for (i = 0; i < 8; i++)
   {
     ResultNibble = Rop & ExpandDest[Dest & 0xF] & ExpandSource[Source & 0xF] & ExpandPattern[Pattern & 0xF];
     Result |= (((ResultNibble & 0xFF000000) ? 0x8 : 0x0) | ((ResultNibble & 0x00FF0000) ? 0x4 : 0x0) |