* 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:
parent
ebfec24391
commit
5c66535df9
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue