##### WaitForSync

##### Applies to

TDirectDrawVideoPort

##### Declaration

function WaitForSync( Flags, Line, Timeout: Longint ): Boolean;

##### Description

Calls the interface WaitForSync method to wait for VSYNC or until a given scan line is being drawn. Returns False if receives a DDERR_WASSTILLDRAWING error code or True for a DD_OK. See IDirectDrawVideoPort::WaitForSync for more information.