* 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

@ -1,3 +1,10 @@
2014-03-10 Christopher Faylor <me.cygwin2014@cgf.cx>
* 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.
2014-03-10 Christopher Faylor <me.cygwin2014@cgf.cx>
* fhandler_console.cc (dev_console::save_restore): Save entire line of

View File

@ -1294,7 +1294,7 @@ class dev_console
short Bottom;
} scroll_region;
CONSOLE_SCREEN_BUFFER_INFOEX b;
CONSOLE_SCREEN_BUFFER_INFO b;
COORD dwWinSize;
COORD dwEnd;

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;