Skip to content

Commit a4c1951

Browse files
committed
Invalidate the edit control for the console window after creating, so that the background gets cleared to the proper background color immediately.
1 parent 6b382b3 commit a4c1951

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

engine/system/win/sys_console.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ void sys_console_c::ThreadProc()
130130

131131
// Create the output window background brush
132132
bBackground = CreateSolidBrush(CFG_SCON_TEXTBG);
133+
InvalidateRect(hwOut, nullptr, TRUE);
133134

134135
// Flush any messages created
135136
sys->RunMessages();

0 commit comments

Comments
 (0)