mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
fix fill color and hline asm code
thx tamlin to notice some mistake svn path=/trunk/; revision=15861
This commit is contained in:
parent
03586e2534
commit
6eab0b40a0
1 changed files with 9 additions and 9 deletions
|
@ -56,14 +56,14 @@ DIB_32BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
|
||||||
" jnz .L1\n"
|
" jnz .L1\n"
|
||||||
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
||||||
" rep stosl\n" /* The actual fill */
|
" rep stosl\n" /* The actual fill */
|
||||||
" jz .L2\n"
|
" jmp .L2\n"
|
||||||
".L1:\n"
|
".L1:\n"
|
||||||
" mov %%eax, %%ecx\n"
|
|
||||||
" stosw\n"
|
" stosw\n"
|
||||||
" sub $0x04,%1\n"
|
|
||||||
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
||||||
|
" dec %%ecx\n"
|
||||||
|
" rol $16,%%eax\n"
|
||||||
" rep stosl\n" /* The actual fill */
|
" rep stosl\n" /* The actual fill */
|
||||||
" shr $0x08,%%eax\n"
|
" shr $0x10,%%eax\n"
|
||||||
" stosw\n"
|
" stosw\n"
|
||||||
".L2:\n"
|
".L2:\n"
|
||||||
: /* no output */
|
: /* no output */
|
||||||
|
@ -720,14 +720,14 @@ DIB_32BPP_ColorFill(SURFOBJ* DestSurface, RECTL* DestRect, ULONG color)
|
||||||
" jnz .FL1\n"
|
" jnz .FL1\n"
|
||||||
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
||||||
" rep stosl\n" /* The actual fill */
|
" rep stosl\n" /* The actual fill */
|
||||||
" jz .FL2\n"
|
" jmp .FL2\n"
|
||||||
".FL1:\n"
|
".FL1:\n"
|
||||||
" mov %%eax, %%ecx\n"
|
|
||||||
" stosw\n"
|
" stosw\n"
|
||||||
" sub $0x04,%1\n"
|
|
||||||
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
|
||||||
|
" dec %%ecx\n"
|
||||||
|
" rol $16,%%eax\n"
|
||||||
" rep stosl\n" /* The actual fill */
|
" rep stosl\n" /* The actual fill */
|
||||||
" shr $0x08,%%eax\n"
|
" shr $0x10,%%eax\n"
|
||||||
" stosw\n"
|
" stosw\n"
|
||||||
".FL2:\n"
|
".FL2:\n"
|
||||||
: /* no output */
|
: /* no output */
|
||||||
|
|
Loading…
Reference in a new issue