Skip to content

Commit 0d4a02b

Browse files
Fixing exit to DOS by reopening IOCB#0 to screen; correcting a visual error when playing a TAB of 128 lines
1 parent f1f3df1 commit 0d4a02b

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

SFXMM.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{$DEFINE ROMOFF}
66

7-
uses SFX_API, sysutils, strings, gr2, ui, pmgraph;
7+
uses SFX_API, sysutils, strings, gr2, ui, pmgraph,cio;
88
{$I-}
99
{$i types.inc}
1010

modules/tab/tab_play.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var i:byte;
33

44
procedure updateTabView();
55
begin
6-
cursorPos:=channels[_tabOfs];// shr 1;
6+
cursorPos:=channels[_tabOfs] and $7f;
77
if (cursorPos>4) then
88
begin
99
if (cursorPos>TAB_maxLength-TAB_winHeight) then

modules/ui_helpers.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ end;
123123
procedure exit2DOS();
124124
begin
125125
SFX_End();
126+
Cls(0); Opn(0,12,0,'E:');
126127
halt;
127128
end;
128129

0 commit comments

Comments
 (0)