blob: f387fe6b16b2cdfcc8389f90dcec8a1d56f2e588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
unit vidutil;
Interface
uses
video;
Procedure TextOut(X,Y : Word;Const S : String);
Implementation
Procedure TextOut(X,Y : Word;Const S : String);
Var
W,P,I,M : Word;
begin
P:=((X-1)+(Y-1)*ScreenWidth);
M:=Length(S);
If P+M>ScreenWidth*ScreenHeight then
M:=ScreenWidth*ScreenHeight-P;
For I:=1 to M do
VideoBuf^[P+I-1]:=Ord(S[i])+($07 shl 8);
end;
end.
|