home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exbas.arj / TEMP / 11-01.BAS < prev    next >
BASIC Source File  |  1995-01-20  |  493b  |  33 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. NewMode = FGbestmode(320,200,2)
  6. IF NewMode < 0 OR NewMode = 12 THEN
  7.    PRINT "This program requires a 320 x 200 color graphics mode."
  8.    STOP
  9. END IF
  10. OldMode = FGgetmode
  11. FGsetmode NewMode
  12.  
  13. FGsetcolor 7
  14. FGrect 0, 319, 0, 199
  15. FGsetcolor 9
  16. FGlocate 12, 18
  17. FGtext "test", 4
  18. FGwaitkey
  19.  
  20. Status = FGallocate(1)
  21. FGcopypage 0, 1
  22. FGerase
  23. FGwaitkey
  24.  
  25. FGcopypage 1, 0
  26. FGwaitkey
  27.  
  28. Status = FGfreepage(1)
  29. FGsetmode OldMode
  30. FGreset
  31.  
  32. END
  33.