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

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. IF FGtestmode(19,1) = 0 THEN
  6.    PRINT "This program requires a 320 x 200 MCGA graphics mode."
  7.    STOP
  8. END IF
  9. OldMode = FGgetmode
  10. FGsetmode 19
  11.  
  12. ReadStatus = FGshowpcx("CORAL.PCX"+CHR$(0),0)
  13. FGwaitkey
  14. IF ReadStatus = 0 THEN
  15.    WriteStatus = FGmakepcx(0,319,80,99,"NEW.PCX"+CHR$(0))
  16. ELSE
  17.    WriteStatus = 1
  18. END IF
  19.  
  20. FGsetmode OldMode
  21. FGreset
  22.  
  23. IF ReadStatus = 1 THEN
  24.    PRINT "CORAL.PCX not found."
  25. ELSEIF ReadStatus = 2 THEN
  26.    PRINT "CORAL.PCX is not a PCX file."
  27. END IF
  28. IF WriteStatus = 1 THEN PRINT "NEW.PCX not created."
  29.  
  30. END
  31.