mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Patch by tonik <spammed@fromru.com>
GuiConsoleUpdateBitmap ignores the color attribute of the first character in line, instead it takes the attribute of the last character of the previous line. svn path=/trunk/; revision=9320
This commit is contained in:
parent
eb065653f6
commit
739592deab
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: guiconsole.c,v 1.13 2004/04/09 20:03:16 navaraf Exp $
|
||||
/* $Id: guiconsole.c,v 1.14 2004/05/08 09:19:53 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -229,12 +229,11 @@ GuiConsoleUpdateBitmap(HWND hWnd, RECT rc)
|
|||
From = Buff->Buffer +
|
||||
((Line - (Buff->MaxY - Buff->ShowY)) * Buff->MaxX + LeftChar) * 2;
|
||||
}
|
||||
Attribute = *(From + 1);
|
||||
Start = LeftChar;
|
||||
To = GuiData->LineBuffer;
|
||||
for (Char = LeftChar; Char <= RightChar; Char++)
|
||||
{
|
||||
if (*(From + 1) != Attribute)
|
||||
if (*(From + 1) != LastAttribute)
|
||||
{
|
||||
TextOutW(GuiData->MemoryDC, Start * GuiData->CharWidth, Line * GuiData->CharHeight,
|
||||
GuiData->LineBuffer, Char - Start);
|
||||
|
|
Loading…
Reference in a new issue