fpc/bugs/bug0048.pp
1998-03-25 11:26:49 +00:00

27 lines
413 B
ObjectPascal

uses
graph,crt;
var
gd,gm : integer;
i,size : longint;
p : pointer;
begin
gd:=detect;
initgraph(gd,gm,'');
line(0,0,getmaxx,0);
readkey;
size:=imagesize(0,0,getmaxx,0);
getmem(p,size);
getimage(0,0,getmaxx,0,p^);
cleardevice;
for i:=0 to getmaxy do
begin
putimage(0,i,p^,xorput);
putimage(0,i,p^,xorput);
end;
readkey;
closegraph;
end.