summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0051.pp
blob: 639ffd257a98ed478926a5df6e119ca018023bd0 (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
{ %GRAPH }
{ %TARGET=go32v2,win32,linux }

{ Old file: tbs0057.pp }
{  Graph, shows a crash with switch graph/text/graph    OK 0.99.9 (PM) }

uses
   graph,crt;

var
   gd,gm : integer;

begin
   gd:=detect;
   gm:=$103;
   initgraph(gd,gm,'');
   setcolor(white);
   line(1,1,100,100);
   {readkey;}delay(1000);
   closegraph;
   initgraph(gd,gm,'');
   line(100,100,1,100);
   {readkey;}delay(1000);
   closegraph;
   writeln('OK');
end.