Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>vidtype() - get video adaptor type</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     vidtype() - get video adaptor type
  Usage:    <integer> = vidtype()
  Params:   none
  Returns:  integer equal to the type of adaptor in use where:

            RETURN    - MEANING
            0         - MDA (monochrome)
            1         - CGA
            2         - EGA
            3         - VGA
            4         - MCGA
            5         - PGA
            -1        - unknown

 ---------------------------------- Example ---------------------------------

                 if (vidtype() < 2)
                      ? "You need a EGA compatible adaptor"
                      ? "to use 43 line mode"
                 else
                      setmode(43)
                 endif

                      or:

                 if (vidtype() = 1)
                      setsnow(.T.)
                 else
                      setsnow(.F.)
                 endif


See Also: setattr() shift() savescreen() restscreen() setmode()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson