This method of the DirectDraw Class resets the mode of the display device hardware for the primary surface to what it was before the setDisplayMode method was called. Exclusive-level access is required to use this method.
public void restoreDisplayMode();
setDisplayMode, enumDisplayModes, setCooperativeLevel