Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    short _FAR _setvideomoderows( short mode, short rows );

Description:
    The _setvideomoderows function selects a video mode and the number of
    rows of text displayed on the screen.  The video mode is specified by
    the argument mode and is selected with the  _setvideomode function.  The
    number of rows is specified by the argument rows and is selected with
    the  _settextrows function.

    Computers equipped with EGA, MCGA and VGA adapters can support different
    numbers of text rows.  The number of rows that can be selected depends
    on the video mode and the type of monitor attached.

Returns:
    The _setvideomoderows function returns the number of screen rows when
    the mode and number of rows are set successfully; otherwise, zero is
    returned.

See Also:
    _getvideoconfig, _setvideomode, _settextrows

Example:
    #include <conio.h>
    #include <graph.h>
    #include <stdio.h>

    main()
    {
        int rows;
        char buf[ 80 ];

        rows = _setvideomoderows( _TEXTC80, _MAXTEXTROWS );
        if( rows != 0 ) {
            sprintf( buf, "Number of rows is %d\n", rows );
            _outtext( buf );
            getch();
            _setvideomode( _DEFAULTMODE );
        }
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

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