DoneVideo

Disable video driver.

Declaration

Source position: videoh.inc line 128

  procedure DoneVideo;

Description

DoneVideo disables the Video driver if the video driver is active. If the videodriver was already disabled or not yet initialized, it does nothing. Disabling the driver means it will clean up any allocated resources, possibly restore the screen in the state it was before InitVideo was called. Particularly, the VideoBuf and OldVideoBuf arrays are no longer valid after a call to DoneVideo.

The DoneVideo should always be called if InitVideo was called. Failing to do so may leave the screen in an unusable state after the program exits.

For an example, see most other functions.

Errors

Normally none. If the driver reports an error, this is done through the ErrorCode variable.

See also

Name Description
InitVideo Initialize video driver.