mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
fixed last commit
This commit is contained in:
parent
1a883a4b70
commit
7fd1b06295
|
@ -249,11 +249,12 @@ static DWORD old_console_mode;
|
|||
void dbg_console_init()
|
||||
{
|
||||
HANDLE handle;
|
||||
DWORD console_mode;
|
||||
|
||||
handle = GetStdHandle(STD_INPUT_HANDLE);
|
||||
GetConsoleMode(handle, &old_console_mode);
|
||||
old_console_mode &= ~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS;
|
||||
SetConsoleMode(handle, old_console_mode);
|
||||
console_mode = old_console_mode & (~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS);
|
||||
SetConsoleMode(handle, console_mode);
|
||||
}
|
||||
void dbg_console_cleanup()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue