From 739592deab4cfec72c834d6038aa3de2f7e13ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 8 May 2004 09:19:53 +0000 Subject: [PATCH] Patch by tonik 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 --- reactos/subsys/csrss/win32csr/guiconsole.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/csrss/win32csr/guiconsole.c b/reactos/subsys/csrss/win32csr/guiconsole.c index 4a437f1381c..8b3af6eed8d 100644 --- a/reactos/subsys/csrss/win32csr/guiconsole.c +++ b/reactos/subsys/csrss/win32csr/guiconsole.c @@ -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);