home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
09-02.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-31
|
738b
|
40 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
IF FGtestmode(19,1) = 0 THEN
PRINT "This program requires a 320 x 200 MCGA graphics mode."
STOP
END IF
OldMode = FGgetmode
FGsetmode 19
FGvbinit
SetMemStatus& = SETMEM(-(320&*200&+16))
Handle = FGvballoc(320,200)
IF Handle < 0 THEN
FGsetmode OldMode
FGreset
PRINT "Could not create the virtual buffer."
STOP
END IF
Status = FGvbopen(Handle)
Status = FGloadpcx("CORAL.PCX"+CHR$(0),0)
IF Status = 0 THEN
FGvbpaste 0, 319, 0, 199, 0, 199
FGwaitkey
END IF
FGvbclose
FGvbfree Handle
FGsetmode OldMode
FGreset
IF Status = 1 THEN
PRINT "CORAL.PCX not found."
ELSEIF Status = 2 THEN
PRINT "CORAL.PCX is not a PCX file."
END IF
END