home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
05-13.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-20
|
468b
|
27 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
NewMode = FGbestmode(320,200,1)
IF NewMode < 0 OR NewMode = 4 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 ";
PRINT "16-color or 256-color graphics mode."
STOP
END IF
OldMode = FGgetmode
FGsetmode NewMode
FGsetcolor 1
IF NewMode <= 16 THEN
FGpalette 1, FGmaprgb(45,49,63)
ELSE
FGsetrgb 1, 45, 49, 63
END IF
FGtext "Hello", 5
FGwaitkey
FGsetmode OldMode
FGreset
END