home *** CD-ROM | disk | FTP | other *** search
- {************************************************}
- {* MONITOR.TP3 *}
- {* Monitortreiber für das Grafiksystem für *}
- {* IBM-Kompatible unter Turbo 3.0 *}
- {* (C) 1989 S.Szkaradnik & TOOLBOX *}
- {************************************************}
- (* Overlay *) (* Bei Speichermangel in Turbo 3.0*)
- (* als Overlay deklarieren ! *)
- Procedure MonitorDriver(Var Par:Parameters);
-
-
-
- Function Open : Boolean ;
- Begin
- Device := Monitor ;
- Xmin := 0 ; Xmax := 639 ;
- Ymin := 0 ; Ymax := 199 ;
- HiRes;
- Open := True ;
- (* Keine Abfrage von Fehlersituationen !!!! *)
- End ;
-
-
- Function CloseMon : BOOLEAN;
- BEGIN
- TextMode;
- CloseMon := TRUE;
- (* Keine Abfrage von Fehlersituationen !!!! *)
- END;
-
- Function Point ( X, Y : Integer ) : Boolean ;
- Begin
- If ( X >= Xmin ) And ( X <= Xmax )
- And ( Y >= Ymin ) And ( Y <= Ymax )
- Then
- Point := TRUE (* (GetDotColor(X,Y) > 0); *)
- Else Fence ;
- End ;
-
- Procedure Dot ( X, Y : Integer ) ;
- Begin
- Control ( X, Y ) ;
- If Tool = Pen Then
- Plot(X,Y,1);
- End ;
-
- Procedure Plot ( X, Y : Integer ) ;
- Begin
- Control ( X, Y ) ;
- Position.X := X ; Position.Y := Y ;
- End ;
-
- Begin
- With Par Do
- Case Command Of
- OpenF : Result := Open ;
- PointF : Result := Point ( X, Y ) ;
- PlotF : Plot ( X, Y ) ;
- DotF : Dot ( X, Y ) ;
- ClearF : HiRes ;
- CloseF : Result := CloseMon ;
- End ;
- End ;