Do not endlessly repeat first character of line when using bright

background (fixes bug #105)

svn path=/trunk/; revision=7268
This commit is contained in:
Gé van Geldorp 2003-12-27 18:25:31 +00:00
parent e5259c9644
commit 17cd4520da

View file

@ -1,4 +1,4 @@
/* $Id: guiconsole.c,v 1.4 2003/12/18 09:51:08 gvg Exp $ /* $Id: guiconsole.c,v 1.5 2003/12/27 18:25:31 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -168,7 +168,7 @@ GuiConsoleHandlePaint(HWND hWnd)
unsigned TopLine, BottomLine, LeftChar, RightChar; unsigned TopLine, BottomLine, LeftChar, RightChar;
unsigned Line, Char, Start; unsigned Line, Char, Start;
HFONT OldFont; HFONT OldFont;
PCHAR From; PBYTE From;
PWCHAR To; PWCHAR To;
BYTE LastAttribute, Attribute; BYTE LastAttribute, Attribute;
ULONG CursorX, CursorY, CursorHeight; ULONG CursorX, CursorY, CursorHeight;
@ -216,6 +216,7 @@ GuiConsoleHandlePaint(HWND hWnd)
TextOutW(Dc, Start * GuiData->CharWidth, Line * GuiData->CharHeight, TextOutW(Dc, Start * GuiData->CharWidth, Line * GuiData->CharHeight,
GuiData->LineBuffer, Char - Start); GuiData->LineBuffer, Char - Start);
Start = Char; Start = Char;
To = GuiData->LineBuffer;
Attribute = *(From + 1); Attribute = *(From + 1);
if (Attribute != LastAttribute) if (Attribute != LastAttribute)
{ {