mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -229,12 +229,11 @@ GuiConsoleUpdateBitmap(HWND hWnd, RECT rc)
|
||||||
From = Buff->Buffer +
|
From = Buff->Buffer +
|
||||||
((Line - (Buff->MaxY - Buff->ShowY)) * Buff->MaxX + LeftChar) * 2;
|
((Line - (Buff->MaxY - Buff->ShowY)) * Buff->MaxX + LeftChar) * 2;
|
||||||
}
|
}
|
||||||
Attribute = *(From + 1);
|
|
||||||
Start = LeftChar;
|
Start = LeftChar;
|
||||||
To = GuiData->LineBuffer;
|
To = GuiData->LineBuffer;
|
||||||
for (Char = LeftChar; Char <= RightChar; Char++)
|
for (Char = LeftChar; Char <= RightChar; Char++)
|
||||||
{
|
{
|
||||||
if (*(From + 1) != Attribute)
|
if (*(From + 1) != LastAttribute)
|
||||||
{
|
{
|
||||||
TextOutW(GuiData->MemoryDC, Start * GuiData->CharWidth, Line * GuiData->CharHeight,
|
TextOutW(GuiData->MemoryDC, Start * GuiData->CharWidth, Line * GuiData->CharHeight,
|
||||||
GuiData->LineBuffer, Char - Start);
|
GuiData->LineBuffer, Char - Start);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue