fpc/bugs/bug0052.pp
peter aae0d9d4cf + fixed bug 92 (var -> const)
+ bug #121
  * removed uppercase names
1998-03-29 15:32:07 +00:00

21 lines
449 B
ObjectPascal

const
Triangle: array[1..4] of PointType = ((X: 50; Y: 100), (X: 100; Y:100),
(X: 150; Y: 150), (X: 50; Y: 100));
begin
graphdefaults;
drawpoly
var Gd, Gm: Integer;
begin
Gd := Detect;
InitGraph(Gd, Gm, '');
if GraphResult <> grOk then
Halt(1);
drawpoly(SizeOf(Triangle) div SizeOf(PointType), Triangle);
readln;
fillpoly(SizeOf(Triangle) div SizeOf(PointType), Triangle);
graphdefaults;
readln;
CloseGraph;
end.