mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Remove unneeded floating point code
svn path=/trunk/; revision=3513
This commit is contained in:
parent
60457afcdc
commit
319a04a8a0
1 changed files with 3 additions and 8 deletions
|
@ -228,7 +228,6 @@ BOOL vgaHLine(INT x, INT y, INT len, UCHAR c)
|
|||
ULONG pre1, i;
|
||||
ULONG orgpre1, orgx, midpre1;
|
||||
ULONG ileftpix, imidpix, irightpix;
|
||||
double leftpix, midpix, rightpix, temp;
|
||||
|
||||
orgx=x;
|
||||
|
||||
|
@ -239,13 +238,9 @@ BOOL vgaHLine(INT x, INT y, INT len, UCHAR c)
|
|||
} else {
|
||||
|
||||
// Calculate the left mask pixels, middle bytes and right mask pixel
|
||||
leftpix = 8-mod(x, 8);
|
||||
rightpix = mod(x+len, 8);
|
||||
midpix = (len-leftpix-rightpix) / 8;
|
||||
|
||||
ileftpix = leftpix;
|
||||
irightpix = rightpix;
|
||||
imidpix = midpix;
|
||||
ileftpix = 8-mod(x, 8);
|
||||
irightpix = mod(x+len, 8);
|
||||
imidpix = (len-ileftpix-irightpix) / 8;
|
||||
|
||||
pre1=xconv[x-(8-ileftpix)]+y80[y];
|
||||
orgpre1=pre1;
|
||||
|
|
Loading…
Reference in a new issue