Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tu2002.pp
Size: Mime:
{ %skiptarget=wince }

unit {vidutil}tu2002;
 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.