mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 08:30:54 +02:00
* Patch from benjawin, Mantis 15779 to better deal with scrollbackbuffer<>screensize.
git-svn-id: trunk@14920 -
This commit is contained in:
parent
112a288442
commit
ab2aa8f88d
@ -986,7 +986,7 @@ begin
|
||||
GetConsoleScreenBufferInfo(StartScreenBufferHandle,
|
||||
@ConsoleScreenBufferInfo);
|
||||
BigWin.X:=ConsoleScreenBufferInfo.dwSize.X;
|
||||
BigWin.Y:=200;
|
||||
BigWin.Y:=ConsoleScreenBufferInfo.srwindow.bottom-ConsoleScreenBufferInfo.srwindow.top; // mants 15779 was 200
|
||||
{ Try to allow to store more info }
|
||||
res:=SetConsoleScreenBufferSize(NewScreenBufferHandle,BigWin);
|
||||
if not res then
|
||||
@ -999,8 +999,14 @@ begin
|
||||
@ConsoleScreenBufferInfo);
|
||||
{ make sure that the IDE Screen Handle has the maximum display size
|
||||
this removes the scroll bars if it is maximized }
|
||||
|
||||
BigWin.X:=ConsoleScreenBufferInfo.dwSize.X;
|
||||
BigWin.Y:=ConsoleScreenBufferInfo.srwindow.bottom-ConsoleScreenBufferInfo.srwindow.top;
|
||||
res:=SetConsoleScreenBufferSize(NewScreenBufferHandle,
|
||||
ConsoleScreenBufferInfo.dwMaximumWindowSize);
|
||||
BigWin);
|
||||
// mants 15779 : was
|
||||
// res:=SetConsoleScreenBufferSize(NewScreenBufferHandle,
|
||||
// ConsoleScreenBufferInfo.dwMaximumWindowSize);
|
||||
if not res then
|
||||
error:=GetLastError;
|
||||
IDEScreenBufferHandle:=NewScreenBufferHandle;
|
||||
|
Loading…
Reference in New Issue
Block a user