Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_setvideomoderows() find appropriate screen mode</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _setvideomoderows()     Find appropriate screen mode

 #include   <graph.h>

 short _setvideomoderows(mode, rows);
 short mode;    _DEFAULTMODE, _ERESCOLOR,   _ERESNOCOLOR,   _HERCMONO,
                _HRES16COLOR, _HRESBW,      _MAXCOLORMODE,  _MAXRESMODE,
                _MRES4COLOR,  _MRES16COLOR, _MRES256COLOR,  _MRESNOCOLOR,
                _ORESCOLOR,   _TEXTBW40,    _TEXTBW80,      _TEXTC40,
                _TEXTC80,     _TEXTMONO,    _VRES2COLOR,    _VRES16COLOR
 short rows;    _MAXTEXTROWS

    _setvideomoderows() selects a screen mode for a particular
    hardware/display combination. mode can take on these values:

             _DEFAULTMODE, _ERESCOLOR,   _ERESNOCOLOR,   _HERCMONO,
             _HRES16COLOR, _HRESBW,      _MAXCOLORMODE,  _MAXRESMODE,
             _MRES4COLOR,  _MRES16COLOR, _MRES256COLOR,  _MRESNOCOLOR,
             _ORESCOLOR,   _TEXTBW40,    _TEXTBW80,      _TEXTC40,
             _TEXTC80,     _TEXTMONO,    _VRES2COLOR,    _VRES16COLOR

    If you specify _MAXTEXTROWS for rows, _setvideomoderows() will
    choose the maximum number of rows available; this is 50 on the
    VGA, 43 on EGA, and 25 on others. For graphics modes which support
    30 or 60 rows, _MAXTEXTROWS corresponds to 60 rows.

    Returns:    Number of rows if successful, 0 if not.

 Portability:   Not supported by the ANSI standard.


See Also: _getvideoconfig() _setvideomode() _setvideomoderows()

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