[Overview][Constants][Types][Procedures and functions][Variables] |
Set current video mode.
Source position: videoh.inc line 146
function SetVideoMode( |
const Mode: TVideoMode |
):Boolean; |
SetVideoModesets the video mode to the mode specified in Mode:
If the call was succesful, then the screen will have Colcolumns and Rowrows, and will be displaying in color if Coloris True.
The function returns Trueif the mode was set succesfully, Falseotherwise.
Note that the video mode may not always be set. E.g. a console on Linux or a telnet session cannot always set the mode. It is important to check the error value returned by this function if it was not succesful.
The mode can be set when the video driver has not yet been initialized (i.e. before InitVideowas called) In that case, the video mode will be stored, and after the driver was initialized, an attempt will be made to set the requested mode. Changing the video driver before the call to InitVideowill clear the stored video mode.
To know which modes are valid, use the GetVideoModeCountand GetVideoModeDatafunctions. To retrieve the current video mode, use the GetVideoModeprocedure.
If the specified mode cannot be set, then errVioNoSuchModemay be set in ErrorCode
|
Get the number of video modes supported by the driver. |
|
|
Get the specifications for a video mode |
|
|
Return current video mode |