graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Video Mode Constants
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Constant: _DEFAULTMODE, _MAXRESMODE, _MAXCOLORMODE, _TEXTBW40,
_TEXTC40, _TEXTBW80, _TEXTC80, _MRES4COLOR, _MRESNOCOLOR,
_HRESBW, _TEXTMONO, _HERCMONO, _MRES16COLOR, _HRES16COLOR,
_ERESNOCOLOR, _ERESCOLOR, _VRES2COLOR, _VRES16COLOR,
_MRES256COLOR, _ORESCOLOR
Context: _setvideomode, _setvideomoderows
Include: <graph.h>
Synopsis: Specifies the video screen mode for all graphics
operations.
The following table lists the display-mode constants and their
corresponding display types, screen sizes, color capacities, and
adapter requirements:
Mode Type Size Colors Adapter
_DEFAULTMODE Start-up mode
_MAXRESMODE Highest resolution graphics mode
_MAXCOLORMODE Maximum colors graphics mode
_TEXTBW40 M/T 40x25 16 CGA
_TEXTC40 C/T 40x25 16 CGA
_TEXTBW80 M/T 80x25 16 CGA
_TEXTC80 C/T 80x25 16 CGA
_MRES4COLOR C/G 320x200 4 CGA
_MRESNOCOLOR M/G 320x200 4 CGA
_HRESBW M/G 640x200 2 CGA
_TEXTMONO M/T 80x25 1 MDPA
_HERCMONO M/G 720x348 1 HGC
_MRES16COLOR C/G 320x200 16 EGA
_HRES16COLOR C/G 640x200 16 EGA
_ERESNOCOLOR M/G 640x350 1 EGA
_ERESCOLOR C/G 640x350 64 EGA
_VRES2COLOR C/G 640x480 2 VGA
_VRES16COLOR C/G 640x480 16 VGA
_MRES256COLOR C/G 320x200 256 VGA
_ORESCOLOR C/G 640x400 1 of 16 Olivetti
graphics
Type: M indicates monochrome
C indicates color output
T indicates text
G indicates graphics
Size: For text modes, size is given in characters (columns
multiplied by rows). For graphics modes, size is given
in pixels (horizontal multiplied by vertical).
Colors: For monochrome displays, the number of colors is the
number of gray shades.
Adapter: Adapters are the IBM (and compatible) Monochrome
Display Adapter (MDPA), Color Graphics Adapter (CGA),
Enhanced Graphics Adapter (EGA), Video Graphics Array
(VGA), Hercules-compatible adapter, and Olivetti-
compatible adapter.
NOTE: Only standard hardware is described here, but display
hardware that is strictly compatible with IBM, Hercules, or
Olivetti hardware should also work as described.
The modes _MAXRESMODE and _MAXCOLORMODE fail for adapters
that do not support graphics mode.