vid_adapter()

Returns the current video display adapter under PCDOS and OS/2

Call
#include <vv_sys.h>
int vid_adapter()
Returns
INT The type of the currently active display adapter. This may be one of the following:
  MDA

CGA

EGA

PGS

VGA

MCGA

Monochrome Display Adapter

Color Graphics Adapter

Enhanced Graphics Adapter

Professional Graphics System

Video Graphics Array

Monochrome Color Graphics Array

Description

PCDOS and OS/2 Systems:

vid_adapter() returns the value stored in a global variable that indicates the type of display adapter in use. This variable is initialized in vv_init() and maintained by vid_setmode().

UNIX and VMS Systems:

vid_adapter() is a no-op macro.

Cautions

vid_adapter() is only available under PCDOS and OS/2. It is a no-op function under UNIX and VMS.

vid_adapter() is a macro and does no error checking. Macros are not listed by the VCS error reporting system.


Home Contents Previous Next