home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exfor.arj
/
TEMP
/
03-07.FOR
< prev
next >
Wrap
Text File
|
1995-01-20
|
689b
|
32 lines
$INCLUDE: 'C:\FG\FASTGRAF.FI'
PROGRAM MAIN
INTEGER OLD_MODE
INTEGER NEW_MODE
INTEGER FG_BESTMODE, FG_GETMODE
CHARACTER*3 STRING
CALL FG_INITPM
OLD_MODE = FG_GETMODE()
NEW_MODE = FG_BESTMODE(320,200,1)
IF (NEW_MODE .LT. 0) THEN
STOP 'This program requires a 320 by 200 graphics mode.'
END IF
CALL FG_SETMODE(NEW_MODE)
CALL FG_SETCOLOR(15)
CALL FG_TEXT('I''m running in mode ',20)
WRITE(STRING,1000) NEW_MODE
CALL FG_TEXT(STRING,3)
CALL FG_WAITKEY
CALL FG_SETMODE(OLD_MODE)
CALL FG_RESET
STOP ' '
1000 FORMAT(I2,'.')
END