do vs2017 warnings.h a little differently than vs2019

fixes #545
This commit is contained in:
nhmall
2021-07-07 09:05:22 -04:00
parent caee59b131
commit 216c26aaef
3 changed files with 24 additions and 6 deletions

View File

@@ -1899,11 +1899,10 @@ void nethack_enter_consoletty()
/* grow the size of the console buffer if it is not wide enough */
if (console.origcsbi.dwSize.X < console.width) {
COORD screen_size = {
screen_size.Y = console.origcsbi.dwSize.Y,
screen_size.X = console.width
};
COORD screen_size = {0};
screen_size.Y = console.origcsbi.dwSize.Y,
screen_size.X = console.width;
SetConsoleScreenBufferSize(console.hConOut, screen_size);
}