mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
Fixed compiler warning
svn path=/trunk/; revision=1397
This commit is contained in:
parent
d996724891
commit
e224120546
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: conio.c,v 1.11 2000/08/05 18:01:58 dwelch Exp $
|
/* $Id: conio.c,v 1.12 2000/10/09 00:12:01 ekohl Exp $
|
||||||
*
|
*
|
||||||
* reactos/subsys/csrss/api/conio.c
|
* reactos/subsys/csrss/api/conio.c
|
||||||
*
|
*
|
||||||
|
@ -204,16 +204,21 @@ NTSTATUS CsrpWriteConsole( PCSRSS_CONSOLE Console, CHAR *Buffer, DWORD Length, B
|
||||||
{
|
{
|
||||||
/* slide viewable screen up */
|
/* slide viewable screen up */
|
||||||
if( Console->ShowY == Console->CurrentY )
|
if( Console->ShowY == Console->CurrentY )
|
||||||
if( Console->ShowY == 0 )
|
{
|
||||||
Console->ShowY = Console->MaxY;
|
if( Console->ShowY == 0 )
|
||||||
else Console->ShowY--;
|
Console->ShowY = Console->MaxY;
|
||||||
|
else
|
||||||
|
Console->ShowY--;
|
||||||
|
}
|
||||||
/* slide virtual position up */
|
/* slide virtual position up */
|
||||||
Console->CurrentX = Console->MaxX;
|
Console->CurrentX = Console->MaxX;
|
||||||
if( Console->CurrentY == 0 )
|
if( Console->CurrentY == 0 )
|
||||||
Console->CurrentY = Console->MaxY;
|
Console->CurrentY = Console->MaxY;
|
||||||
else Console->CurrentY--;
|
else
|
||||||
|
Console->CurrentY--;
|
||||||
}
|
}
|
||||||
else Console->CurrentX--;
|
else
|
||||||
|
Console->CurrentX--;
|
||||||
Console->Buffer[ 2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX) ] = ' ';
|
Console->Buffer[ 2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX) ] = ' ';
|
||||||
Console->Buffer[ (2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX)) + 1 ] = Console->DefaultAttrib;
|
Console->Buffer[ (2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX)) + 1 ] = Console->DefaultAttrib;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue