Sign in Join
FPDoc Onlineexperiment

InitVideo procedure

In unit video

Initialize video driver.

Declaration

pascal
procedure InitVideo

Description

InitVideo Initializes the video subsystem. If the video system was already initialized, it does nothing. After the driver has been initialized, the VideoBuf and OldVideoBuf pointers are initialized, based on the ScreenWidth and ScreenHeight variables. When this is done, the screen is cleared.

For an example, see most other functions.

Errors

if the driver fails to initialize, the ErrorCode variable is set.

See also

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