home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
msdos
/
animutil
/
fastgfx
/
fg303e
/
expas.arj
/
FGDOC
/
EXAMPLES
/
PASCAL
/
08-12.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-30
|
532b
|
30 lines
program main;
uses fgmain, fgmisc;
var
old_mode : integer;
page_addr : word;
buffer : pointer;
begin
old_mode := fg_getmode;
fg_setmode(19);
getmem(buffer,fg_pagesize+16);
page_addr := seg(buffer^) + ((ofs(buffer^)+15) div 16);
fg_setentry(1,page_addr,2);
fg_setpage(1);
fg_erase;
fg_setcolor(9);
fg_text('This is page 1.',15);
fg_waitkey;
fg_copypage(1,0);
fg_setentry(1,0,0);
fg_waitkey;
freemem(buffer,fg_pagesize+16);
fg_setmode(old_mode);
fg_reset;
end.