tbs0048.pp 691 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {$ifdef go32v2}
  2. {$define OK}
  3. {$endif}
  4. {$ifdef linux}
  5. {$define OK}
  6. {$endif}
  7. {$ifdef win32}
  8. {$define OK}
  9. {$endif}
  10. {$ifdef OK}
  11. uses
  12. graph,crt;
  13. var
  14. gd,gm : integer;
  15. i,size : longint;
  16. p : pointer;
  17. {$endif OK}
  18. begin
  19. {$ifdef OK}
  20. gd:=detect;
  21. initgraph(gd,gm,'');
  22. setcolor(brown);
  23. line(0,0,getmaxx,0);
  24. {readkey;}delay(1000);
  25. size:=imagesize(0,0,getmaxx,0);
  26. getmem(p,size);
  27. getimage(0,0,getmaxx,0,p^);
  28. cleardevice;
  29. for i:=0 to getmaxy do
  30. begin
  31. putimage(0,i,p^,xorput);
  32. end;
  33. {readkey;}delay(1000);
  34. for i:=0 to getmaxy do
  35. begin
  36. putimage(0,i,p^,xorput);
  37. end;
  38. {readkey;}delay(1000);
  39. closegraph;
  40. {$endif OK}
  41. end.