fix console font

svn path=/trunk/; revision=26384
This commit is contained in:
Christoph von Wittich 2007-04-17 23:38:39 +00:00
parent 96b61f6b0b
commit d2796783e0

View file

@ -860,7 +860,7 @@ GuiConsolePaint(PCSRSS_CONSOLE Console,
PWCHAR To;
BYTE LastAttribute, Attribute;
ULONG CursorX, CursorY, CursorHeight;
HBRUSH CursorBrush, OldBrush;
HBRUSH CursorBrush, OldBrush, BackgroundBrush;
HFONT OldFont;
Buff = Console->ActiveBuffer;
@ -882,6 +882,10 @@ GuiConsolePaint(PCSRSS_CONSOLE Console,
OldFont = SelectObject(hDC,
GuiData->Font);
BackgroundBrush = CreateSolidBrush(GuiData->ScreenBackground);
FillRect(hDC, rc, BackgroundBrush);
DeleteObject(BackgroundBrush);
for (Line = TopLine; Line <= BottomLine; Line++)
{
if (Line + Buff->ShowY < Buff->MaxY)