Speed up 8bpp fills by a factor 4
Modified: trunk/reactos/subsys/win32k/dib/dib8bpp.c
_____
Modified: trunk/reactos/subsys/win32k/dib/dib8bpp.c
--- trunk/reactos/subsys/win32k/dib/dib8bpp.c 2005-01-14 20:41:45 UTC
(rev 13046)
+++ trunk/reactos/subsys/win32k/dib/dib8bpp.c 2005-01-14 21:08:01 UTC
(rev 13047)
@@ -38,15 +38,7 @@
VOID
DIB_8BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
{
- PBYTE byteaddr = SurfObj->pvScan0 + y * SurfObj->lDelta;
- PBYTE addr = byteaddr + x1;
- LONG cx = x1;
-
- while(cx < x2) {
- *addr = c;
- ++addr;
- ++cx;
- }
+ memset(SurfObj->pvScan0 + y * SurfObj->lDelta + x1, (BYTE) c, x2 -
x1);
}
VOID