mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 06:19:32 +02:00
34 lines
392 B
ObjectPascal
34 lines
392 B
ObjectPascal
{$ifdef go32v2}
|
|
{$define OK}
|
|
{$endif}
|
|
{$ifdef linux}
|
|
{$define OK}
|
|
{$endif}
|
|
{$ifdef win32}
|
|
{$define OK}
|
|
{$endif}
|
|
|
|
{$ifdef OK}
|
|
uses
|
|
graph,
|
|
crt;
|
|
|
|
var
|
|
gd,gm : integer;
|
|
{$endif OK}
|
|
|
|
begin
|
|
{$ifdef OK}
|
|
gd:=detect;
|
|
initgraph(gd,gm,'');
|
|
line(1,1,100,100);
|
|
{readkey;}
|
|
setgraphmode($107);
|
|
line(100,100,1024,800);
|
|
{readkey;}
|
|
delay(1000);
|
|
closegraph;
|
|
{$endif OK}
|
|
end.
|
|
|