mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Speed up 8bpp fills by a factor 4
svn path=/trunk/; revision=13047
This commit is contained in:
parent
b06d14e94f
commit
b80866de7c
1 changed files with 1 additions and 9 deletions
|
@ -38,15 +38,7 @@ DIB_8BPP_GetPixel(SURFOBJ *SurfObj, LONG x, LONG y)
|
||||||
VOID
|
VOID
|
||||||
DIB_8BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
|
DIB_8BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
|
||||||
{
|
{
|
||||||
PBYTE byteaddr = SurfObj->pvScan0 + y * SurfObj->lDelta;
|
memset(SurfObj->pvScan0 + y * SurfObj->lDelta + x1, (BYTE) c, x2 - x1);
|
||||||
PBYTE addr = byteaddr + x1;
|
|
||||||
LONG cx = x1;
|
|
||||||
|
|
||||||
while(cx < x2) {
|
|
||||||
*addr = c;
|
|
||||||
++addr;
|
|
||||||
++cx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue