mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +00:00
fix console font
svn path=/trunk/; revision=26384
This commit is contained in:
parent
96b61f6b0b
commit
d2796783e0
1 changed files with 5 additions and 1 deletions
|
@ -860,7 +860,7 @@ GuiConsolePaint(PCSRSS_CONSOLE Console,
|
||||||
PWCHAR To;
|
PWCHAR To;
|
||||||
BYTE LastAttribute, Attribute;
|
BYTE LastAttribute, Attribute;
|
||||||
ULONG CursorX, CursorY, CursorHeight;
|
ULONG CursorX, CursorY, CursorHeight;
|
||||||
HBRUSH CursorBrush, OldBrush;
|
HBRUSH CursorBrush, OldBrush, BackgroundBrush;
|
||||||
HFONT OldFont;
|
HFONT OldFont;
|
||||||
|
|
||||||
Buff = Console->ActiveBuffer;
|
Buff = Console->ActiveBuffer;
|
||||||
|
@ -882,6 +882,10 @@ GuiConsolePaint(PCSRSS_CONSOLE Console,
|
||||||
OldFont = SelectObject(hDC,
|
OldFont = SelectObject(hDC,
|
||||||
GuiData->Font);
|
GuiData->Font);
|
||||||
|
|
||||||
|
BackgroundBrush = CreateSolidBrush(GuiData->ScreenBackground);
|
||||||
|
FillRect(hDC, rc, BackgroundBrush);
|
||||||
|
DeleteObject(BackgroundBrush);
|
||||||
|
|
||||||
for (Line = TopLine; Line <= BottomLine; Line++)
|
for (Line = TopLine; Line <= BottomLine; Line++)
|
||||||
{
|
{
|
||||||
if (Line + Buff->ShowY < Buff->MaxY)
|
if (Line + Buff->ShowY < Buff->MaxY)
|
||||||
|
|
Loading…
Reference in a new issue