mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fix double output of lines > 80 chars in text mode
svn path=/trunk/; revision=6410
This commit is contained in:
parent
3cfa31a43d
commit
47be3186ac
1 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: conio.c,v 1.54 2003/10/20 18:02:04 gvg Exp $
|
||||
/* $Id: conio.c,v 1.55 2003/10/23 06:53:20 gvg Exp $
|
||||
*
|
||||
* reactos/subsys/csrss/api/conio.c
|
||||
*
|
||||
|
@ -702,9 +702,12 @@ NTSTATUS STDCALL CsrpWriteConsole( PCSRSS_SCREEN_BUFFER Buff, CHAR *Buffer, DWOR
|
|||
if (Buff->CurrentX == Buff->MaxX)
|
||||
{
|
||||
/* if end of line, go to next */
|
||||
CsrpPhysicalToLogical(Buff, Buff->CurrentX, Buff->CurrentY,
|
||||
&(UpdateRect.Right), &(UpdateRect.Bottom));
|
||||
CsrpDrawRegion(Buff->Console, UpdateRect);
|
||||
if (! TextMode && NULL != Buff->Console)
|
||||
{
|
||||
CsrpPhysicalToLogical(Buff, Buff->CurrentX, Buff->CurrentY,
|
||||
&(UpdateRect.Right), &(UpdateRect.Bottom));
|
||||
CsrpDrawRegion(Buff->Console, UpdateRect);
|
||||
}
|
||||
|
||||
Buff->CurrentX = 0;
|
||||
/* slide the viewable screen */
|
||||
|
|
Loading…
Reference in a new issue