~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/videoex/vidutil.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

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