$INCLUDE: 'C:\FG\INTRFACE.FOR'

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE, FG_TESTMODE

      IF (FG_TESTMODE(13,1) .EQ. 0) THEN
         STOP 'This program requires a 320 x 200 EGA graphics mode.'
      END IF

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(13)

      CALL FG_SETCOLOR(9)
      CALL FG_LOCATE(0,38)
      CALL FG_TEXT('resize',6)
      CALL FG_WAITKEY

      CALL FG_ERASE
      CALL FG_RESIZE(640,200)
      CALL FG_SETCOLOR(10)
      CALL FG_LOCATE(0,38)
      CALL FG_TEXT('resize',6)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
