mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
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:
parent
e5259c9644
commit
17cd4520da
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue