fix fill color and hline asm code
thx tamlin to notice some mistake
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
_____
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
--- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-11 19:09:42 UTC
(rev 15860)
+++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-11 19:56:12 UTC
(rev 15861)
@@ -56,14 +56,14 @@
" jnz .L1\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
" rep stosl\n" /* The actual fill */
-" jz .L2\n"
+" jmp .L2\n"
".L1:\n"
-" mov %%eax, %%ecx\n"
" stosw\n"
-" sub $0x04,%1\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill */
+" dec %%ecx\n"
+" rol $16,%%eax\n"
" rep stosl\n" /* The actual fill */
-" shr $0x08,%%eax\n"
+" shr $0x10,%%eax\n"
" stosw\n"
".L2:\n"
: /* no output */
@@ -720,14 +720,14 @@
" jnz .FL1\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill
*/
" rep stosl\n" /* The actual fill */
- " jz .FL2\n"
- ".FL1:\n"
- " mov %%eax, %%ecx\n"
+ " jmp .FL2\n"
+ ".FL1:\n"
" stosw\n"
- " sub $0x04,%1\n"
" mov %1,%%ecx\n" /* Setup count of fullwords to fill
*/
+ " dec %%ecx\n"
+ " rol $16,%%eax\n"
" rep stosl\n" /* The actual fill */
- " shr $0x08,%%eax\n"
+ " shr $0x10,%%eax\n"
" stosw\n"
".FL2:\n"
: /* no output */
Show replies by date