Fixed bug in VT_int_ClearLine and removed debug
authorJohn Hodge <[email protected]>
Wed, 23 Sep 2009 08:21:54 +0000 (16:21 +0800)
committerJohn Hodge <[email protected]>
Wed, 23 Sep 2009 08:21:54 +0000 (16:21 +0800)
Kernel/drv/vterm.c

index bf518c5..2cdd84f 100644 (file)
@@ -363,13 +363,13 @@ void VT_int_PutString(tVTerm *Term, Uint8 *Buffer, Uint Count)
 void VT_int_ClearLine(tVTerm *Term, int Num)
 {
         int    i;
-       ENTER("pTerm iNum", Term, Num);
-       for( i = Term->Width; i++; )
+       //ENTER("pTerm iNum", Term, Num);
+       for( i = Term->Width; i--; )
        {
                Term->Text[ Num*Term->Width + i ].Ch = 0;
                Term->Text[ Num*Term->Width + i ].Colour = Term->CurColour;
        }
-       LEAVE('-');
+       //LEAVE('-');
 }
 
 /**

UCC git Repository :: git.ucc.asn.au