Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_getvideo() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_GETVIDEO()

 DESCRIPTION

 C_GETVIDEO() returns the video adaptor card installed on the computer.

 SYNTAX

 C_GETVIDEO()

 PARAMETERS

 There are no parameters.

 RETURNS

 C_GETVIDEO() returns a numeric video adaptor code.  The codes for
 the video adaptor cards are as follows:

 CODE   ADAPTOR
 ----   -------
 0      MDA - Monochrome Display Adaptor
 1      CGA - Color Graphics Adaptor
 2      EGA - Enhanced Graphics Adaptor
 3      VGA - Video Graphics Array

 EXAMPLES

 m_vmode = c_getmode()        && Save current video mode

 m_adaptor = c_getvideo()     && Get video adaptor

 do case
 case m_adaptor = 1           && If CGA-set video mode to 6 (640x200)
   c_setmode(6)
 case m_adaptor = 2           && If EGA-set video mode to 16 (640x350)
   c_setmode(16)
 case m_adaptor = 3           && If VGA-set video mode to 19 (640x480)
   c_setmode(19)
 endcase
 ...
 ...          && Do graphics routine
 ...
 c_setmode(m_vmode)      && Set video mode back to previous mode


See Also: C_GETMODE() C_SETMODE() C_PIXWRITE() C_PIXREAD()

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