mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
Fixed bug with screen buffers larger than console window ( i.e. scrollback buffers )
svn path=/trunk/; revision=1526
This commit is contained in:
parent
643441de17
commit
7b0b7c5396
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
*
|
||||
|
@ -212,14 +212,10 @@ main(
|
|||
{
|
||||
myself = GetModuleHandle(NULL);
|
||||
|
||||
#if 1
|
||||
GetConsoleScreenBufferInfo (GetStdHandle(STD_OUTPUT_HANDLE),
|
||||
&ScreenBufferInfo);
|
||||
#else
|
||||
ScreenBufferInfo.dwSize.X = 80;
|
||||
ScreenBufferInfo.dwSize.Y = 25;
|
||||
#endif
|
||||
|
||||
ScreenBufferInfo.dwSize.X = ScreenBufferInfo.srWindow.Right - ScreenBufferInfo.srWindow.Left;
|
||||
ScreenBufferInfo.dwSize.Y = ScreenBufferInfo.srWindow.Bottom - ScreenBufferInfo.srWindow.Top;
|
||||
ScreenBuffer = CreateConsoleScreenBuffer(
|
||||
GENERIC_WRITE,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue