mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
fix a bug in hline for 16bpp it did not do Align to fullword boundary correct GvG did spot this lite bug. fix fill bug in 8bpp now it will boot agein thx waxdragon that did spot this problem.
svn path=/trunk/; revision=15845
This commit is contained in:
parent
ba8d788967
commit
a89c7dcf3d
2 changed files with 3 additions and 3 deletions
|
@ -49,11 +49,11 @@ DIB_16BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
|
||||||
|
|
||||||
__asm__(
|
__asm__(
|
||||||
" cld\n"
|
" cld\n"
|
||||||
" andl $0xffff, %0\n" /* If the pixel value is "abcd", put "abcdabcd" in %eax */
|
|
||||||
" mov %0, %%eax\n"
|
" mov %0, %%eax\n"
|
||||||
" shl $16, %%eax\n"
|
" shl $16, %%eax\n"
|
||||||
|
" andl $0xffff, %0\n" /* If the pixel value is "abcd", put "abcdabcd" in %eax */
|
||||||
" or %0, %%eax\n"
|
" or %0, %%eax\n"
|
||||||
" test $0x01, %%edi\n" /* Align to fullword boundary */
|
" test $0x03, %%edi\n" /* Align to fullword boundary */
|
||||||
" jz .L1\n"
|
" jz .L1\n"
|
||||||
" stosw\n"
|
" stosw\n"
|
||||||
" dec %1\n"
|
" dec %1\n"
|
||||||
|
|
|
@ -352,7 +352,7 @@ DIB_8BPP_ColorFill(SURFOBJ* DestSurface, RECTL* DestRect, ULONG color)
|
||||||
ULONG DestY;
|
ULONG DestY;
|
||||||
for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
|
for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
|
||||||
{
|
{
|
||||||
DIB_32BPP_HLine (DestSurface, DestRect->left, DestRect->right, DestY, color);
|
DIB_8BPP_HLine (DestSurface, DestRect->left, DestRect->right, DestY, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue