home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
08-17.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-31
|
668b
|
43 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
OldMode = FGgetmode
FGsetmode 22
FGvbinit
SetMemStatus& = SETMEM(-(320&*240&+16))
Handle = FGvballoc(320,240)
IF Handle < 0 THEN
FGsetmode OldMode
FGreset
PRINT "Could not create the virtual buffer."
STOP
END IF
FGsetcolor 9
FGfillpage
FGsetcolor 15
FGbox 0, 319, 0, 239
Status = FGvbopen(Handle)
FGvbcut 0, 319, 0, 239, 0, 239
FGvbclose
FGwaitkey
FGsetmode OldMode
FGcursor 0
FGsetcolor 15
FGtext "Press any key.", 14
FGwaitkey
FGsetmode 22
Status = FGvbopen(Handle)
FGvbpaste 0, 319, 0, 239, 0, 239
FGwaitkey
FGvbclose
FGvbfree Handle
FGsetmode OldMode
FGreset
END