Platform SDK: DirectX

DirectDraw7.RestoreDisplayMode

The DirectDraw7.RestoreDisplayMode method resets the mode of the display device hardware for the primary surface to what it was before the DirectDraw7.SetDisplayMode method was called. Exclusive-level access is required to use this method.

object.RestoreDisplayMode()

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_LOCKEDSURFACES
DDERR_NOEXCLUSIVEMODE

See Also

DirectDraw7.SetDisplayMode, DirectDrawEnumModes, DirectDraw7.SetCooperativeLevel