home *** CD-ROM | disk | FTP | other *** search
- procedure savescrn(user_file: string; screenrow, screencol : integer);
- { save the full screen to the output file, to be displayed by a program
- called dispany.pas without having to regenerate the tiles from the CD-ROM
- (until the getscreen/putscreen procedures work, this will do) }
- var
- tempbuf : array[0..639] of byte;
- outpfile : file;
- ro, col, n : integer;
-
- begin {procedure savescrn}
-
- assign(outpfile,user_file);rewrite(outpfile,1);
-
- for ro := 0 to screenrow do
- begin
- for col := 0 to screencol do
- begin
- tempbuf[col] := getpixel(col,ro); { fill-up a line of pixels }
- end; {for col loop }
- blockwrite(outpfile,tempbuf,sizeof(tempbuf),n);
- end; {for ro loop }
- close(outpfile);
- end; {procedure savescrn}