mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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
|
* 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,
|
||||||
|
|
Loading…
Reference in a new issue