From 47be3186ac0f82c19f6ee696a4aa1bf619e32de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 23 Oct 2003 06:53:20 +0000 Subject: [PATCH] Fix double output of lines > 80 chars in text mode svn path=/trunk/; revision=6410 --- reactos/subsys/csrss/api/conio.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/csrss/api/conio.c b/reactos/subsys/csrss/api/conio.c index 5646a1a77ef..3aed6a8e85b 100644 --- a/reactos/subsys/csrss/api/conio.c +++ b/reactos/subsys/csrss/api/conio.c @@ -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 */