mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +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()
|
void dbg_console_init()
|
||||||
{
|
{
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
|
DWORD console_mode;
|
||||||
|
|
||||||
handle = GetStdHandle(STD_INPUT_HANDLE);
|
handle = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
GetConsoleMode(handle, &old_console_mode);
|
GetConsoleMode(handle, &old_console_mode);
|
||||||
old_console_mode &= ~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS;
|
console_mode = old_console_mode & (~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS);
|
||||||
SetConsoleMode(handle, old_console_mode);
|
SetConsoleMode(handle, console_mode);
|
||||||
}
|
}
|
||||||
void dbg_console_cleanup()
|
void dbg_console_cleanup()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue