mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 11:48:10 +02:00
27 lines
413 B
ObjectPascal
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.
|
|
|