Microsoft SDK for Java

getDisplayMode

This method of the DirectDraw Class retrieves the current display mode.

Syntax

public void getDisplayMode(DDSurfaceDesc surface);

Parameters

surface A DDSurfaceDesc object that receives a description of the surface.

Remarks

An application should not save the information returned by this method to restore the display mode on clean-up. The application should use the restoreDisplayMode method to restore the mode on clean-up, which avoids mode-setting conflicts that could arise in a multiprocess environment.

See Also

setDisplayMode, restoreDisplayMode, enumDisplayModes

© 1999 Microsoft Corporation. All rights reserved. Terms of use.