Skip to content

Commit fac48da

Browse files
authored
Merge pull request #7 from Ripjetski6502/dev
bugfix for WClr height
2 parents affa8af + 1120d4f commit fac48da

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/a8defines.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface
1414

1515
const
1616
// Version
17-
LIB_VERSION = '1.2.0';
17+
LIB_VERSION = '1.2.1';
1818

1919
// Window Record and Memory Alloc
2020
WRECSZ = 10;

src/a8defwin.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ td_wnpos = record
2727
vX, vY: Byte;
2828
end;
2929

30-
TStringArray = array[0..0] of string;
30+
TStringArray = array[0..0] of String[40];
3131

3232
implementation
3333

src/a8libmenu.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function WMenu(bN, x, y, bO, bI, bS, bC: Byte; pS: TStringArray): Byte;
132132
Move(@tmpStr[1], @cL[1], Length(cL));
133133

134134
if bO = GHORZ then
135-
WPrint(bN, pos + bL - 1, y, WOFF, cL)
135+
WPrint(bN, pos + bL - 1, y, WOFF, cL)
136136
else
137137
WPrint(bN, x, y + bL - 1, WOFF, cL);
138138
end;

src/a8libwin.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function WClose(bN: Byte): Byte;
3535
function WStat(bN: Byte): Byte;
3636
function WPos(bN, x, y: Byte): Byte;
3737
function WPut(bN: Byte; x: Char): Byte;
38-
function WPrint(bN, x, y, bI: Byte; pS: string): Byte;
39-
function WOrn(bN, bT, bL: Byte; pS: string): Byte;
38+
function WPrint(bN, x, y, bI: Byte; pS: string[38]): Byte;
39+
function WOrn(bN, bT, bL: Byte; pS: string[38]): Byte;
4040
function WDiv(bN, y, bD: Byte): Byte;
4141
function WClr(bN: Byte): Byte;
4242

@@ -364,7 +364,7 @@ function WPut(bN: Byte; x: Char): Byte;
364364
// >100 on error
365365
// Notes...: Test will automatically be inverse if window is inverse.
366366
// --------------------------------------------------
367-
function WPrint(bN, x, y, bI: Byte; pS: string): Byte;
367+
function WPrint(bN, x, y, bI: Byte; pS: string[38]): Byte;
368368
var
369369
bL, tmp: Byte;
370370
cS: Word;
@@ -440,7 +440,7 @@ function WPrint(bN, x, y, bI: Byte; pS: string): Byte;
440440
// >100 on error
441441
// Notes...: Max 36 for frame and bookends
442442
// --------------------------------------------------
443-
function WOrn(bN, bT, bL: Byte; pS: string): Byte;
443+
function WOrn(bN, bT, bL: Byte; pS: string[38]): Byte;
444444
var
445445
bS: Byte;
446446
cS: Word;

0 commit comments

Comments
 (0)