This method of the DirectDraw Class retrieves the current display mode.
public void getDisplayMode(DDSurfaceDesc surface);
surface | A DDSurfaceDesc object that receives a description of the surface. |
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.
setDisplayMode, restoreDisplayMode, enumDisplayModes