PutScreenImage now resets the window to max and pops it back after placing the image
This commit is contained in:
parent
90552c453e
commit
ab789bc8af
|
@ -580,7 +580,13 @@ Procedure TOutputLinux.PutScreenImage (Image: TConsoleImageRec);
|
||||||
Var
|
Var
|
||||||
CountX : Byte;
|
CountX : Byte;
|
||||||
CountY : Byte;
|
CountY : Byte;
|
||||||
|
OT, OB : Byte;
|
||||||
Begin
|
Begin
|
||||||
|
OT := FWinTop;
|
||||||
|
OB := FWinBot;
|
||||||
|
|
||||||
|
SetWindow (1, 1, 80, ScreenSize, False);
|
||||||
|
|
||||||
For CountY := Image.Y1 to Image.Y2 Do Begin
|
For CountY := Image.Y1 to Image.Y2 Do Begin
|
||||||
CursorXY (Image.X1, CountY);
|
CursorXY (Image.X1, CountY);
|
||||||
|
|
||||||
|
@ -594,7 +600,8 @@ Begin
|
||||||
End;
|
End;
|
||||||
|
|
||||||
SetTextAttr (Image.CursorA);
|
SetTextAttr (Image.CursorA);
|
||||||
CursorXY (Image.CursorX, Image.CursorY);
|
CursorXY (Image.CursorX, Image.CursorY);
|
||||||
|
SetWindow (1, OT, 80, OB, False);
|
||||||
|
|
||||||
BufFlush;
|
BufFlush;
|
||||||
End;
|
End;
|
||||||
|
|
Loading…
Reference in New Issue