
------------------------------------------------------------------------------
52. Set the screen video mode. <Main>
------------------------------------------------------------------------------
[Name]
_setvideomode
[Syntax]
#include <graph.h>
short _setvideomode( short mode ) ;
[Description]
Selects the display mode of the screen.
[Compatibility]
<MS-C Non-Compatible Specification>
(1) Specify one of the following video modes.
When any mode including parentheses is specified, this function
returns "0" (error), but the initialization of graphic screen is
done correctly. (In this case, the "_grstatus()" function returns
"_GRMODENOTSUPPORTED".)
VGA Graphic
--------------------------------------------------------------------
Mode Size(Text) Palette (Color mode)
--------------------------------------------------------------------
_98RESS16COLOR 640x400(80x25) 16 colors (PC-98)
_98RESS8COLOR
(_98RESSCOLOR)
--------------------------------------------------------------------
_98RES16COLOR 640x400 256 colors (PC-98)
_98RES8COLOR
(_98RESCOLOR)
--------------------------------------------------------------------
_VRES16COLOR 640x480(80x30) 16 colors (PC-AT)
_VRES16EXCOLOR
--------------------------------------------------------------------
_VRES256COLOR 640x480 256 colors (PC-AT)
--------------------------------------------------------------------
_98TEXT80 Text mode(80x25) 16 colors
_TEXTC80
--------------------------------------------------------------------
This function sets the following modes for "_DEFAULTMODE",
"_MAXCOLORMODE" or "_MAXRESMODE".
-----------------------------------
Mode VGA Graphic
-----------------------------------
_DEFAULTMODE _98TEXT80,_TEXTC80
_MAXCOLORMODE _VRES256COLOR
_MAXRESMODE _VRES16COLOR
-----------------------------------