* fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO for use

with older OS.
* fhandler_console.cc (dev_console::fillin): Ditto for
GetConsoleScreenBufferInfo.
This commit is contained in:
Christopher Faylor
2014-03-10 18:18:56 +00:00
parent ebfec24391
commit 5c66535df9
3 changed files with 9 additions and 3 deletions

View File

@@ -733,8 +733,7 @@ dev_console::fillin (HANDLE h)
{
bool ret;
b.cbSize = sizeof (b);
if ((ret = GetConsoleScreenBufferInfoEx (h, &b)))
if ((ret = GetConsoleScreenBufferInfo (h, &b)))
{
dwWinSize.Y = 1 + b.srWindow.Bottom - b.srWindow.Top;
dwWinSize.X = 1 + b.srWindow.Right - b.srWindow.Left;