Sign in Join
FPDoc Onlineexperiment

GetVideoModeData function

In unit video

Get the specifications for a video mode.

Declaration

pascal
function GetVideoModeData(Index: Word; var Data: TVideoMode): Boolean

Description

GetVideoModeData returns the characteristics of the Index-th video mode in Data. Index is zero based, and has a maximum value of GetVideoModeCount-1. If the current driver does not support setting of modes ( GetVideoModeCount=1) and Index is zero, the current mode is returned.

The function returns True if the mode data was retrieved successfully, False otherwise.

For an example, see GetVideoModeCount.

Errors

In case Index has a wrong value, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.