From 319a04a8a03d49b1ea87bc41b8273ec4b0a5d7c1 Mon Sep 17 00:00:00 2001 From: Jason Filby Date: Tue, 17 Sep 2002 21:39:10 +0000 Subject: [PATCH] Remove unneeded floating point code svn path=/trunk/; revision=3513 --- reactos/drivers/dd/vga/display/vgavideo/vgavideo.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/reactos/drivers/dd/vga/display/vgavideo/vgavideo.c b/reactos/drivers/dd/vga/display/vgavideo/vgavideo.c index 34c509078b2..26d5940affb 100644 --- a/reactos/drivers/dd/vga/display/vgavideo/vgavideo.c +++ b/reactos/drivers/dd/vga/display/vgavideo/vgavideo.c @@ -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;