home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exfor.arj
/
TEMP
/
10-01.FOR
< prev
next >
Wrap
Text File
|
1995-01-20
|
924b
|
38 lines
$INCLUDE: 'C:\FG\FASTGRAF.FI'
PROGRAM MAIN
INTEGER*1 PERIMETER(10)
INTEGER*1 INTERIOR(10)
INTEGER OLD_MODE, NEW_MODE
INTEGER FG_BESTMODE, FG_GETMODE
DATA PERIMETER /#FF,#80,#41,#00,#22,#00,#14,#00,#08,#00/
DATA INTERIOR /#00,#00,#3E,#00,#1C,#00,#08,#00,#00,#00/
CALL FG_INITPM
NEW_MODE = FG_BESTMODE(320,200,1)
IF (NEW_MODE .LT. 0 .OR. NEW_MODE .EQ. 12) THEN
STOP 'This program requires a 320 x 200 color graphics mode.'
END IF
OLD_MODE = FG_GETMODE()
CALL FG_SETMODE(NEW_MODE)
CALL FG_SETCOLOR(7)
CALL FG_RECT(0,319,0,199)
CALL FG_MOVE(156,101)
CALL FG_SETCOLOR(1)
CALL FG_DRAWMAP(PERIMETER,2,5)
CALL FG_SETCOLOR(2)
CALL FG_DRAWMAP(INTERIOR,2,5)
CALL FG_WAITKEY
CALL FG_SETMODE(OLD_MODE)
CALL FG_RESET
STOP ' '
END