Fixed bug with screen buffers larger than console window ( i.e. scrollback buffers )

svn path=/trunk/; revision=1526
This commit is contained in:
Phillip Susi 2001-01-16 20:58:58 +00:00
parent 643441de17
commit 7b0b7c5396

View file

@ -1,4 +1,4 @@
/* $Id: notevil.c,v 1.2 1999/10/03 22:10:15 ekohl Exp $ /* $Id: notevil.c,v 1.3 2001/01/16 20:58:58 phreak Exp $
* *
* notevil.c * notevil.c
* *
@ -212,14 +212,10 @@ main(
{ {
myself = GetModuleHandle(NULL); myself = GetModuleHandle(NULL);
#if 1
GetConsoleScreenBufferInfo (GetStdHandle(STD_OUTPUT_HANDLE), GetConsoleScreenBufferInfo (GetStdHandle(STD_OUTPUT_HANDLE),
&ScreenBufferInfo); &ScreenBufferInfo);
#else ScreenBufferInfo.dwSize.X = ScreenBufferInfo.srWindow.Right - ScreenBufferInfo.srWindow.Left;
ScreenBufferInfo.dwSize.X = 80; ScreenBufferInfo.dwSize.Y = ScreenBufferInfo.srWindow.Bottom - ScreenBufferInfo.srWindow.Top;
ScreenBufferInfo.dwSize.Y = 25;
#endif
ScreenBuffer = CreateConsoleScreenBuffer( ScreenBuffer = CreateConsoleScreenBuffer(
GENERIC_WRITE, GENERIC_WRITE,
0, 0,